comparison Actor.cpp @ 1115:849b848ed871

wrong IsNotAlive() condition fix
author Grumpy7
date Wed, 29 May 2013 03:19:12 +0200
parents d110108dab74
children 29a8defbad9e
comparison
equal deleted inserted replaced
1114:d110108dab74 1115:849b848ed871
241 } 241 }
242 242
243 //----- (004089C7) -------------------------------------------------------- 243 //----- (004089C7) --------------------------------------------------------
244 bool Actor::IsNotAlive() 244 bool Actor::IsNotAlive()
245 { 245 {
246 bool isparalyzed; // esi@1 246 bool isstoned; // esi@1
247 //unsigned __int16 v2; // ax@3 247 //unsigned __int16 v2; // ax@3
248 248
249 isparalyzed = (signed __int64)this->pActorBuffs[6].uExpireTime > 0;// paralyzed 249 isstoned = (signed __int64)this->pActorBuffs[5].uExpireTime > 0;// stoned
250 //v2 = this->uAIState; 250 //v2 = this->uAIState;
251 return (isparalyzed || (uAIState == Dying) || (uAIState == Dead) || (uAIState == Removed) || (uAIState == Summoned) || (uAIState == Disabled)); 251 return (isstoned || (uAIState == Dying) || (uAIState == Dead) || (uAIState == Removed) || (uAIState == Summoned) || (uAIState == Disabled));
252 } 252 }
253 253
254 //----- (004086E9) -------------------------------------------------------- 254 //----- (004086E9) --------------------------------------------------------
255 void Actor::SetRandomGoldIfTheresNoItem() 255 void Actor::SetRandomGoldIfTheresNoItem()
256 { 256 {