fixed: poison clouds could bounce
authorsheepluva
Sat, 24 Oct 2015 00:21:15 +0200
changeset 11240 413714b915d2
parent 11208 3ff617fccc67
child 11246 d9622394ec9c
fixed: poison clouds could bounce
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Sat Oct 10 18:18:26 2015 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Sat Oct 24 00:21:15 2015 +0200
@@ -5197,7 +5197,9 @@
 ////////////////////////////////////////////////////////////////////////////////
 procedure doStepPoisonCloud(Gear: PGear);
 begin
-    WorldWrap(Gear);
+    // don't bounce
+    if WorldEdge <> weBounce then
+        WorldWrap(Gear);
     if Gear^.Timer = 0 then
         begin
         DeleteGear(Gear);