fix bounds checks (#3237)
This commit is contained in:
parent
9cee65da6c
commit
0ccdf940f7
7 changed files with 16 additions and 22 deletions
|
|
@ -18,7 +18,7 @@ namespace {
|
|||
|
||||
void RepeatWalk(Player &player)
|
||||
{
|
||||
if (cursPosition.x < 0 || cursPosition.x >= MAXDUNX - 1 || cursPosition.y < 0 || cursPosition.y >= MAXDUNY - 1)
|
||||
if (!InDungeonBounds(cursPosition))
|
||||
return;
|
||||
|
||||
if (player._pmode != PM_STAND && !(player.IsWalking() && player.AnimInfo.GetFrameToUseForRendering() > 6))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue