Make flames ignore bouncy world edge
authorWuzzy <Wuzzy2@mail.ru>
Wed, 19 Jun 2019 20:37:02 +0200
changeset 15180 061a3085d6d8
parent 15179 cd38295cac16
child 15181 d13a38548112
Make flames ignore bouncy world edge Rationale: Flame speed heavily relies on wind and cannot be reasonably reversed. The rationale is similar as for gtPoisonCloud.
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Wed Jun 19 19:02:49 2019 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Wed Jun 19 20:37:02 2019 +0200
@@ -2706,7 +2706,9 @@
     tdX,tdY, f: HWFloat;
     landPixel: Word;
 begin
-    WorldWrap(Gear);
+    // don't bounce
+    if WorldEdge <> weBounce then
+        WorldWrap(Gear);
     if Gear^.FlightTime > 0 then dec(Gear^.FlightTime);
     // There are 2 flame types: normal and sticky
     sticky:= (Gear^.State and gsttmpFlag) <> 0;