# HG changeset patch # User Grumpy7 # Date 1382724957 25200 # Node ID 730166317ed017392af5ceb2836a7252de1decaf # Parent 23cb27a497a059b752e78ab6ef67cc5d87647e95 pActorBuffs[10] to pActorBuffs[ACTOR_BUFF_MASS_DISTORTION] diff -r 23cb27a497a0 -r 730166317ed0 CastSpellInfo.cpp --- a/CastSpellInfo.cpp Fri Oct 25 11:15:18 2013 -0700 +++ b/CastSpellInfo.cpp Fri Oct 25 11:15:57 2013 -0700 @@ -651,7 +651,7 @@ LODWORD(v727) = 1; break; } - pActors[PID_ID(a2)].pActorBuffs[10].Apply(pMiscTimer->uTotalGameTimeElapsed + 128, 0, 0, 0, 0); + pActors[PID_ID(a2)].pActorBuffs[ACTOR_BUFF_MASS_DISTORTION].Apply(pMiscTimer->uTotalGameTimeElapsed + 128, 0, 0, 0, 0); v704.x = 0; v704.y = 0; v704.z = 0; diff -r 23cb27a497a0 -r 730166317ed0 Indoor.cpp --- a/Indoor.cpp Fri Oct 25 11:15:18 2013 -0700 +++ b/Indoor.cpp Fri Oct 25 11:15:57 2013 -0700 @@ -4622,7 +4622,7 @@ v0->_screenspace_y_scaler_packedfloat = a5a; if ( (signed __int64)p->pActorBuffs[ACTOR_BUFF_SHRINK].uExpireTime <= 0 ) { - if ( (signed __int64)p->pActorBuffs[10].uExpireTime > 0 ) + if ( (signed __int64)p->pActorBuffs[ACTOR_BUFF_MASS_DISTORTION].uExpireTime > 0 ) { a5b = (unsigned __int64)(pGame->pStru6Instance->_4A806F(p) * (signed __int64)v0->_screenspace_y_scaler_packedfloat) >> 16; goto LABEL_43; diff -r 23cb27a497a0 -r 730166317ed0 Outdoor.cpp --- a/Outdoor.cpp Fri Oct 25 11:15:18 2013 -0700 +++ b/Outdoor.cpp Fri Oct 25 11:15:57 2013 -0700 @@ -3067,7 +3067,7 @@ v28->_screenspace_y_scaler_packedfloat = (unsigned __int64)(v15->scale * (signed __int64)v57) >> 16; if ( v31 || v31 | v30 && LODWORD(actor->pActorBuffs[ACTOR_BUFF_SHRINK].uExpireTime) <= 0u ) { - if ( (signed __int64)actor->pActorBuffs[10].uExpireTime > 0i64 ) + if ( (signed __int64)actor->pActorBuffs[ACTOR_BUFF_MASS_DISTORTION].uExpireTime > 0i64 ) { v52 = (unsigned __int64)(pGame->pStru6Instance->_4A806F(actor) * (signed __int64)v28->_screenspace_y_scaler_packedfloat) >> 16; diff -r 23cb27a497a0 -r 730166317ed0 stru6.cpp --- a/stru6.cpp Fri Oct 25 11:15:18 2013 -0700 +++ b/stru6.cpp Fri Oct 25 11:15:57 2013 -0700 @@ -735,12 +735,12 @@ float v5; // ST00_4@6 v2 = (int)pActor; - v3 = LODWORD(pActor->pActorBuffs[10].uExpireTime) - pMiscTimer->uTotalGameTimeElapsed; + v3 = LODWORD(pActor->pActorBuffs[ACTOR_BUFF_MASS_DISTORTION].uExpireTime) - pMiscTimer->uTotalGameTimeElapsed; if ( (signed int)v3 <= 64 ) { if ( (v3 & 0x80000000u) != 0 ) { - pActor->pActorBuffs[10].uExpireTime = 0i64; + pActor->pActorBuffs[ACTOR_BUFF_MASS_DISTORTION].uExpireTime = 0i64; v4 = 1.0; } else