Use enumerable instead of magic number

This commit is contained in:
Andrei Kortunov 2019-02-03 14:02:54 +04:00
parent cb5a57e41b
commit 097c649885

View File

@ -26,6 +26,8 @@
#include "../mwmechanics/aibreathe.hpp" #include "../mwmechanics/aibreathe.hpp"
#include "../mwrender/vismask.hpp"
#include "spellcasting.hpp" #include "spellcasting.hpp"
#include "npcstats.hpp" #include "npcstats.hpp"
#include "creaturestats.hpp" #include "creaturestats.hpp"
@ -1461,7 +1463,7 @@ namespace MWMechanics
continue; continue;
} }
else if (!isPlayer) else if (!isPlayer)
iter->first.getRefData().getBaseNode()->setNodeMask(1<<3); iter->first.getRefData().getBaseNode()->setNodeMask(MWRender::Mask_Actor);
if (iter->first.getClass().getCreatureStats(iter->first).isParalyzed()) if (iter->first.getClass().getCreatureStats(iter->first).isParalyzed())
ctrl->skipAnim(); ctrl->skipAnim();