diff Player.cpp @ 1355:af2fc30d765f

Player::CanAct, Player::CanSteal shortened a bit
author Grumpy7
date Sat, 13 Jul 2013 13:14:05 +0200
parents 05becb008006
children 301e227439e7
line wrap: on
line diff
--- a/Player.cpp	Sat Jul 13 13:12:21 2013 +0200
+++ b/Player.cpp	Sat Jul 13 13:14:05 2013 +0200
@@ -628,7 +628,7 @@
 }
 
 //----- (0049327B) --------------------------------------------------------
-bool Player::GetProfessionOrGuildFlags( unsigned int uClass, int a3 )
+bool Player::ProfessionOrGuildFlagsCorrect( unsigned int uClass, int a3 )
 {
   if ( this->classType == uClass )
   {
@@ -663,24 +663,18 @@
 //----- (00492C0B) --------------------------------------------------------
 bool Player::CanAct()
 {
-  bool result; // eax@2
-
   if ( this->pConditions[Condition_Sleep] || this->pConditions[Condition_Paralyzed] || 
        this->pConditions[Condition_Unconcious] || this->pConditions[Condition_Dead] || 
        this->pConditions[Condition_Pertified] || this->pConditions[Condition_Eradicated] )
-    result = false;
+    return false;
   else
-    result = true;
-  return result;
+    return true;
 }
 
 //----- (00492C40) --------------------------------------------------------
 bool Player::CanSteal()
 {
-  int v1; // eax@1
-
-  LOBYTE(v1) = GetActualSkillLevel(PLAYER_SKILL_STEALING);
-  return v1 != 0;
+  return GetActualSkillLevel(PLAYER_SKILL_STEALING) != 0;
 }
 
 //----- (00492C4E) --------------------------------------------------------