Mercurial > mm7
changeset 1957:3d0c57c4fa83
pActorBuffs[13] to pActorBuffs[ACTOR_BUFF_DAY_OF_PROTECTION]
author | Grumpy7 |
---|---|
date | Fri, 25 Oct 2013 11:18:10 -0700 |
parents | 542c13cd72e2 |
children | 95095c2a5e19 |
files | Actor.cpp mm7_6.cpp |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Actor.cpp Fri Oct 25 11:17:25 2013 -0700 +++ b/Actor.cpp Fri Oct 25 11:18:10 2013 -0700 @@ -617,7 +617,7 @@ LOWORD(realPoints) = uSkillLevel; v96 = 0; } - actorPtr->pActorBuffs[13].Apply( + actorPtr->pActorBuffs[ACTOR_BUFF_DAY_OF_PROTECTION].Apply( pParty->uTimePlayed + (signed int)(signed __int64)((double)(v96 << 7) * 0.033333335), masteryLevel, realPoints,
--- a/mm7_6.cpp Fri Oct 25 11:17:25 2013 -0700 +++ b/mm7_6.cpp Fri Oct 25 11:18:10 2013 -0700 @@ -276,12 +276,12 @@ } case 85: { - if ( SHIDWORD(pActor->pActorBuffs[13].uExpireTime) < 0 ) + if ( SHIDWORD(pActor->pActorBuffs[ACTOR_BUFF_DAY_OF_PROTECTION].uExpireTime) < 0 ) return 1; - if ( SHIDWORD(pActor->pActorBuffs[13].uExpireTime) > 0 ) + if ( SHIDWORD(pActor->pActorBuffs[ACTOR_BUFF_DAY_OF_PROTECTION].uExpireTime) > 0 ) return 0; v3 = 0; - v4 = LODWORD(pActor->pActorBuffs[13].uExpireTime) == 0; + v4 = LODWORD(pActor->pActorBuffs[ACTOR_BUFF_DAY_OF_PROTECTION].uExpireTime) == 0; break; } case 86: