comparison Player.cpp @ 1332:1e35cfed7928

turn engine file added
author Gloval
date Fri, 05 Jul 2013 01:46:44 +0400
parents d9e4c0bbb2d2
children 22cb507446a4
comparison
equal deleted inserted replaced
1331:f0be1fecd642 1332:1e35cfed7928
897 //----- (00492C0B) -------------------------------------------------------- 897 //----- (00492C0B) --------------------------------------------------------
898 bool Player::CanAct() 898 bool Player::CanAct()
899 { 899 {
900 bool result; // eax@2 900 bool result; // eax@2
901 901
902 if ( this->pConditions[2] | this->pConditions[12] | this->pConditions[13] | this->pConditions[14] | this->pConditions[15] | this->pConditions[16] ) 902 if ( this->pConditions[Condition_Sleep] || this->pConditions[Condition_Paralyzed] ||
903 result = 0; 903 this->pConditions[Condition_Unconcious] || this->pConditions[Condition_Dead] ||
904 this->pConditions[Condition_Pertified] || this->pConditions[Condition_Eradicated] )
905 result = false;
904 else 906 else
905 result = 1; 907 result = true;
906 return result; 908 return result;
907 } 909 }
908 910
909 //----- (00492C40) -------------------------------------------------------- 911 //----- (00492C40) --------------------------------------------------------
910 bool Player::CanSteal() 912 bool Player::CanSteal()