mirror of https://github.com/nmlgc/ReC98.git
[Regression] Fix conditional branches in CShots::hittest_pellet()
1 wrong byte of ASM that slipped through due to a off-by-one error in
an experimental mzdiff branch. Having MOV rather than LES here was
ultimately a harmless mistake though. In context, it's even covered by
the "identical instruction encoding" exception 🙂
This commit is contained in:
parent
ed4d7282a0
commit
f03f43db3a
|
@ -129,9 +129,11 @@ bool16 CShots::hittest_pellet(int pellet_left, int pellet_top)
|
|||
if(moving[i] == false) {
|
||||
continue;
|
||||
}
|
||||
if(decay_frame[i] == 1) {
|
||||
continue;
|
||||
}
|
||||
if(
|
||||
decay_frame[i] != true
|
||||
&& ((left[i] - pellet_left) <= ((SHOT_W / 2) - SHOT_SPRITE_MARGIN))
|
||||
((left[i] - pellet_left) <= ((SHOT_W / 2) - SHOT_SPRITE_MARGIN))
|
||||
&& ((left[i] - pellet_left) >= -(SHOT_H - SHOT_SPRITE_MARGIN))
|
||||
&& ((top[i] - pellet_top) <= ((SHOT_W / 2) - SHOT_SPRITE_MARGIN))
|
||||
&& ((top[i] - pellet_top) >= -(SHOT_H - SHOT_SPRITE_MARGIN))
|
||||
|
|
Loading…
Reference in New Issue