mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Tank Hit fix
And TankWidth as variable (definition).
This commit is contained in:
+2
-2
@@ -1137,10 +1137,10 @@ FallingRight
|
||||
bvs EndRightFall
|
||||
; we finish falling right if the tank reached the edge of the screen
|
||||
lda XtanksTableH,x
|
||||
cmp #>(screenwidth-8-2) ; 2 pixels correction due to a barrel wider than tank
|
||||
cmp #>(screenwidth-TankWidth-2) ; 2 pixels correction due to a barrel wider than tank
|
||||
bne @+
|
||||
lda XtanksTableL,x
|
||||
cmp #<(screenwidth-8-2) ; 2 pixels correction due to a barrel wider than tank
|
||||
cmp #<(screenwidth-TankWidth-2) ; 2 pixels correction due to a barrel wider than tank
|
||||
@ bcs EndRightFall
|
||||
NotRightEdge
|
||||
; tank is falling right - modify coorinates
|
||||
|
||||
Reference in New Issue
Block a user