# HG changeset patch
# User nemo
# Date 1414264622 14400
# Node ID dac3bfb3a2b1212c0dc070c48168165bca94fabc
# Parent  42dadeb6e8aefb653c796eee65f83b736dd9d9d1
cosmetic disabling of clouds with sea edges and underwater theme

diff -r 42dadeb6e8ae -r dac3bfb3a2b1 hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Sat Oct 25 11:29:45 2014 -0400
+++ b/hedgewars/hwengine.pas	Sat Oct 25 15:17:02 2014 -0400
@@ -74,7 +74,9 @@
             SetDefaultBinds;
             if HasBorder then
                 DisableSomeWeapons;
-            AddClouds;
+            // wave "clouds" on underwater theme look weird w/ weSea, esp the blended bottom portion
+            if (WorldEdge <> weSea) or (Theme <> 'Underwater') then
+                AddClouds;
             AddFlakes;
             SetRandomSeed(cSeed, false);
             AssignHHCoords;