hedgewars/HHHandlers.inc
changeset 1002 14ecd5fd4fab
parent 984 dd5f16f69926
child 1012 36b5cc8264e8
--- a/hedgewars/HHHandlers.inc	Tue Jun 17 19:22:54 2008 +0000
+++ b/hedgewars/HHHandlers.inc	Tue Jun 17 20:00:01 2008 +0000
@@ -546,7 +546,7 @@
 
    doStepHedgehogMoving(Gear);
 
-   if (Gear^.State and gstMoving) = 0 then
+   if ((Gear^.State and (gstMoving or gstDrowning)) = 0) then
       begin
       AddGearCI(Gear);
       StepTicks:= 350
@@ -569,7 +569,7 @@
 
 doStepHedgehogMoving(Gear);
 
-if (Gear^.State and gstMoving) <> 0 then
+if (Gear^.State and (gstMoving or gstDrowning)) <> 0 then
 	begin
 	AllInactive:= false;
 	exit