hedgewars/HHHandlers.inc
changeset 2040 7c366fc3c099
parent 2024 2985f3bd18b7
child 2041 9e0b5a6bcecf
--- a/hedgewars/HHHandlers.inc	Fri May 08 18:20:06 2009 +0000
+++ b/hedgewars/HHHandlers.inc	Sat May 09 11:56:46 2009 +0000
@@ -712,6 +712,11 @@
 	exit
 	end;
 
-if (Gear^.State and gstHHDriven) = 0 then doStepHedgehogFree(Gear)
-                                     else doStepHedgehogDriven(Gear)
+if (Gear^.State and gstHHDriven) = 0 then
+	doStepHedgehogFree(Gear)
+else
+	begin
+	TeamGoneEffect(PHedgehog(Gear^.Hedgehog)^.Team^);
+	doStepHedgehogDriven(Gear)
+	end
 end;