From f6d16b4907632cd4049f0c0f2480eb4262851920 Mon Sep 17 00:00:00 2001 From: pionere Date: Sun, 27 Sep 2020 11:48:33 +0200 Subject: [PATCH] UCHAR_MAX to squelch --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 430476f87..8e690671a 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -4572,7 +4572,7 @@ void ProcessMonsters() Monst->_menemyx = plr[Monst->_menemy]._pfutx; Monst->_menemyy = plr[Monst->_menemy]._pfuty; if (dFlags[mx][my] & BFLAG_VISIBLE) { - Monst->_msquelch = 255; + Monst->_msquelch = UCHAR_MAX; Monst->_lastx = plr[Monst->_menemy]._pfutx; Monst->_lasty = plr[Monst->_menemy]._pfuty; } else if (Monst->_msquelch != 0 && Monst->_mAi != MT_DIABLO) { /// BUGFIX: change '_mAi' to 'MType->mtype'