hedgewars/uGearsHandlersMess.pas
changeset 9487 fbe203c1d11e
parent 9485 3dee8a3b0406
child 9505 56e0cca99e20
--- a/hedgewars/uGearsHandlersMess.pas	Thu Oct 03 12:10:30 2013 -0400
+++ b/hedgewars/uGearsHandlersMess.pas	Thu Oct 03 12:22:12 2013 -0400
@@ -1323,6 +1323,7 @@
     HHGear: PGear;
 begin
     AllInactive := false;
+    WorldWrap(Gear);
     HHGear := Gear^.Hedgehog^.Gear;
     dec(Gear^.Timer);
     if ((GameFlags and gfInfAttack) <> 0) and (TurnTimeLeft > 0) then
@@ -1446,6 +1447,7 @@
     prevX: LongInt;
 begin
     AllInactive := false;
+    WorldWrap(Gear);
     dec(Gear^.Timer);
     if ((GameFlags and gfInfAttack) <> 0) and (TurnTimeLeft > 0) then
         dec(TurnTimeLeft);