diff mm7_6.cpp @ 1450:8ff3c675a726

more renaming TE
author Gloval
date Wed, 07 Aug 2013 08:55:34 +0400
parents 27b7ee003c7c
children 934074e7fcc1
line wrap: on
line diff
--- a/mm7_6.cpp	Tue Aug 06 00:56:33 2013 +0400
+++ b/mm7_6.cpp	Wed Aug 07 08:55:34 2013 +0400
@@ -671,8 +671,8 @@
 }
 
 //----- (0042704B) --------------------------------------------------------
-bool stru319::special_ability_use_check(Actor *pActor, int a2)
-{
+int stru319::special_ability_use_check( struct Actor *pActor, int a2 )
+    {
   stru319 *v3; // edi@1
   signed int v4; // ebx@5
   signed int v5; // edi@5
@@ -688,7 +688,7 @@
     return 2;
   if ( v5 && pActor->pMonsterInfo.uSpell2UseChance && rand() % 100 < pActor->pMonsterInfo.uSpell2UseChance )
     return 3;
-  return pActor->pMonsterInfo.uAttack2Chance && rand() % 100 < pActor->pMonsterInfo.uAttack2Chance;
+  return pActor->pMonsterInfo.uAttack2Chance && rand() % 100 < pActor->pMonsterInfo.uAttack2Chance?1:0;
 }
 
 //----- (00427102) --------------------------------------------------------