Skip to content

Commit

Permalink
bugfix for vanilla
Browse files Browse the repository at this point in the history
- prevent the player from following a hidden monster
  • Loading branch information
pionere committed Aug 3, 2024
1 parent b57931d commit 395b126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2530,7 +2530,8 @@ static bool CheckNewPath(int pnum)
}

if (plr._pDestAction == ACTION_ATTACKMON) {
MakePlrPath(pnum, monsters[plr._pDestParam1]._mfutx, monsters[plr._pDestParam1]._mfuty, false);
if (!(monsters[plr._pDestParam1]._mFlags & MFLAG_HIDDEN))
MakePlrPath(pnum, monsters[plr._pDestParam1]._mfutx, monsters[plr._pDestParam1]._mfuty, false);
} else if (plr._pDestAction == ACTION_ATTACKPLR) {
MakePlrPath(pnum, plx(plr._pDestParam1)._pfutx, plx(plr._pDestParam1)._pfuty, false);
}
Expand Down

0 comments on commit 395b126

Please sign in to comment.