hedgewars/GSHandlers.inc
changeset 3471 e1f1ab5dfd8f
parent 3468 c7b80bdbc384
child 3473 f80431269806
--- a/hedgewars/GSHandlers.inc	Mon May 17 02:54:56 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Mon May 17 06:26:06 2010 +0000
@@ -3156,6 +3156,7 @@
     // destroy portal if ground it was attached too is gone
     if ((Land[hwRound(Gear^.Y), hwRound(Gear^.X)] and $FF00) = 0)
        or (Gear^.Timer < 1)
+       or (PHedgehog(Gear^.Hedgehog) <> CurrentHedgehog)
        or (hwRound(Gear^.Y) > cWaterLine) then
     begin
         deleteGear(Gear);
@@ -3304,7 +3305,8 @@
 end;
 
 begin
-    if (Gear^.Timer < 1) then
+    if (Gear^.Timer < 1)
+       or (PHedgehog(Gear^.Hedgehog) <> CurrentHedgehog) then
     begin
         deleteGear(Gear);
         EXIT;