diff SpriteObject.cpp @ 1036:7f8be9f9769e

player recieve damage
author Gloval
date Wed, 22 May 2013 22:25:44 +0400
parents c45d51b3f4f4
children e23a79658fc5
line wrap: on
line diff
--- a/SpriteObject.cpp	Tue May 21 23:45:26 2013 +0200
+++ b/SpriteObject.cpp	Wed May 22 22:25:44 2013 +0400
@@ -1080,7 +1080,7 @@
       if ( (*v12)->CanAct() && (v13 = (*v12)->GetPerception() + 20, rand() % v13 > 20) )
         (*v12)->PlaySound(SPEECH_6, 0);
       else
-        (*v12)->ReceiveDamage(v11, v18);
+        (*v12)->ReceiveDamage(v11, (DAMAGE_TYPE)v18);
       ++v12;
     }
     while ( (signed int)v12 <= (signed int)&pPlayers[4] );