Skip to content

Commit

Permalink
Fix targets firing on first level.
Browse files Browse the repository at this point in the history
The last commit introduced this bug. Oops.
  • Loading branch information
fragglet committed Feb 20, 2024
1 parent e19b6f1 commit bf26e22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/swmove.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,9 @@ bool movetarg(OBJECTS *ob)
{
ob->ob_firing = NULL;

if (ob->ob_state == STANDING && (gamenum > 1 || (countmove & 0x0001))) {
if (ob->ob_state == STANDING
&& gamenum > 0
&& (gamenum > 1 || (countmove & 0x0001))) {
target_enemy_planes(ob);
}

Expand Down

0 comments on commit bf26e22

Please sign in to comment.