Tweak position of big splashes right or left
authorWuzzy <Wuzzy2@mail.ru>
Thu, 11 Jul 2019 04:42:50 +0200
changeset 15248 263b9850c16d
parent 15247 eb61cf77b365
child 15249 1dd99fc2a0e8
Tweak position of big splashes right or left
hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Thu Jul 11 03:22:35 2019 +0200
+++ b/hedgewars/uGearsUtils.pas	Thu Jul 11 04:42:50 2019 +0200
@@ -586,7 +586,13 @@
     else Scale:= Scale + ((1-Scale) / 2);
     if Scale > 1 then Timer:= round(min(Scale*0.0005/cGravityf,4))
     else Timer:= 1;
-    if Scale > 1 then Y:= Y + 10;
+    if Scale > 1 then
+        if (not isImpactH) then
+            Y:= Y + 10
+        else if isImpactRight then
+            X:= X + 10
+        else
+            X:= X - 10;
     // Low Gravity
     FrameTicks:= FrameTicks*Timer;
     end;