Fix vgtChunk being never deleted if rqPlainSplash is set
authorWuzzy <Wuzzy2@mail.ru>
Fri, 12 Jul 2019 00:07:09 +0200
changeset 15244 de53425ebc39
parent 15243 df5890e5a12a
child 15245 4195d2852974
Fix vgtChunk being never deleted if rqPlainSplash is set
hedgewars/uVisualGearsHandlers.pas
--- a/hedgewars/uVisualGearsHandlers.pas	Thu Jul 11 23:53:30 2019 +0200
+++ b/hedgewars/uVisualGearsHandlers.pas	Fri Jul 12 00:07:09 2019 +0200
@@ -848,9 +848,10 @@
 
 Gear^.Angle:= round(Gear^.Angle + Steps) mod cMaxAngle;
 
-if ((cReducedQuality and rqPlainSplash) = 0) and (CheckCoordInWater(round(Gear^.X), round(Gear^.Y))) then
+if CheckCoordInWater(round(Gear^.X), round(Gear^.Y)) then
     begin
-    AddVisualGear(round(Gear^.X), round(Gear^.Y), vgtDroplet);
+    if ((cReducedQuality and rqPlainSplash) = 0) then
+        AddVisualGear(round(Gear^.X), round(Gear^.Y), vgtDroplet);
     DeleteVisualGear(Gear);
     end
 end;