Skip to content

Commit

Permalink
Merge pull request sdlpal#281 from liuzhier/pr_fixed_qumoxiang_no_pas…
Browse files Browse the repository at this point in the history
…s_player_auto_walk

fix: incorrect countdown pause of enemy alert range change.
  • Loading branch information
palxex committed Mar 11, 2024
2 parents c4a0412 + 166122e commit 7ed2f16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions play.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ PAL_GameUpdate(
}
}

if (--gpGlobals->wChasespeedChangeCycles == 0)
{
gpGlobals->wChaseRange = 1;
}

gpGlobals->dwFrameNum++;
}

Expand Down Expand Up @@ -573,11 +578,6 @@ PAL_StartFrame(
//
PAL_QuitGame();
}

if (--gpGlobals->wChasespeedChangeCycles == 0)
{
gpGlobals->wChaseRange = 1;
}
}

VOID
Expand Down

0 comments on commit 7ed2f16

Please sign in to comment.