Mercurial > mm7
diff Indoor.cpp @ 1951:524fe0810f32
pActorBuffs[7] to pActorBuffs[ACTOR_BUFF_SLOWED]
author | Grumpy7 |
---|---|
date | Fri, 25 Oct 2013 11:13:15 -0700 |
parents | 2f45768fcb7a |
children | 730166317ed0 |
line wrap: on
line diff
--- a/Indoor.cpp Fri Oct 25 11:12:18 2013 -0700 +++ b/Indoor.cpp Fri Oct 25 11:13:15 2013 -0700 @@ -3274,12 +3274,12 @@ if ( v0->uCurrentActionAnimation == ANIM_Walking) { v6 = v0->uMovementSpeed; - v7 = HIDWORD(v0->pActorBuffs[7].uExpireTime) == 0; - v8 = SHIDWORD(v0->pActorBuffs[7].uExpireTime) < 0; + v7 = HIDWORD(v0->pActorBuffs[ACTOR_BUFF_SLOWED].uExpireTime) == 0; + v8 = SHIDWORD(v0->pActorBuffs[ACTOR_BUFF_SLOWED].uExpireTime) < 0; v61 = v0->uMovementSpeed; - if ( !v8 && (!(v8 | v7) || LODWORD(v0->pActorBuffs[7].uExpireTime)) ) + if ( !v8 && (!(v8 | v7) || LODWORD(v0->pActorBuffs[ACTOR_BUFF_SLOWED].uExpireTime)) ) { - v9 = v0->pActorBuffs[7].uPower; + v9 = v0->pActorBuffs[ACTOR_BUFF_SLOWED].uPower; if ( v9 ) LODWORD(v10) = v6 / (unsigned __int16)v9; else