From 3ce2a6a8c28322e676f1432024043fa968007d77 Mon Sep 17 00:00:00 2001 From: Sergey Semushin Date: Sun, 26 May 2019 12:56:26 +0300 Subject: [PATCH] Make NewMonsterAnim bin exact. --- Source/monster.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 55556c31e..25b400982 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1090,13 +1090,14 @@ int AddMonster(int x, int y, int dir, int mtype, BOOL InMap) void NewMonsterAnim(int i, AnimStruct *anim, int md) { - monster[i]._mAnimData = anim->Data[md]; - monster[i]._mAnimCnt = 0; - monster[i]._mAnimLen = anim->Frames; - monster[i]._mAnimFrame = 1; - monster[i]._mFlags &= ~(MFLAG_LOCK_ANIMATION | MFLAG_ALLOW_SPECIAL); - monster[i]._mAnimDelay = anim->Rate; - monster[i]._mdir = md; + MonsterStruct *Monst = monster + i; + Monst->_mAnimData = anim->Data[md]; + Monst->_mAnimLen = anim->Frames; + Monst->_mAnimCnt = 0; + Monst->_mAnimFrame = 1; + Monst->_mAnimDelay = anim->Rate; + Monst->_mFlags &= ~(MFLAG_LOCK_ANIMATION | MFLAG_ALLOW_SPECIAL); + Monst->_mdir = md; } BOOL M_Ranged(int i)