Cake explodes on /attack
authorunc0rr
Fri, 25 Jul 2008 14:01:28 +0000
changeset 1090 c4ff49d0fe9b
parent 1089 24e9e1ca0394
child 1091 1f88d8e0a59e
Cake explodes on /attack
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Fri Jul 25 13:52:35 2008 +0000
+++ b/hedgewars/GSHandlers.inc	Fri Jul 25 14:01:28 2008 +0000
@@ -1527,7 +1527,7 @@
 		end;
 
 dec(Gear^.Health);
-if Gear^.Health = 0 then
+if (Gear^.Health = 0) or ((Gear^.Message and gm_Attack) <> 0) then
 	begin
 	doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 75, EXPLAutoSound);
 	AfterAttack;