Reset to SD sky colour if in SD Hedgewars-iOS-1.3
authornemo
Tue, 30 Aug 2011 12:32:33 -0400
changeset 5704 718f98a9df12
parent 5703 637fb1e6487b
child 5705 3b5f63631cc2
child 5706 4454aa0523e7
Reset to SD sky colour if in SD
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Mon Aug 29 19:28:45 2011 -0400
+++ b/hedgewars/uStore.pas	Tue Aug 30 12:32:33 2011 -0400
@@ -1030,9 +1030,12 @@
     SetupOpenGL();
     if reinit then
         begin
-        if ((cReducedQuality and rqNoBackground) = 0) then 
+        if SuddenDeathDmg then
+             glClearColor(SDSkyColor.r * (SDTint/255) / 255, SDSkyColor.g * (SDTint/255) / 255, SDSkyColor.b * (SDTint/255) / 255, 0.99)
+        else if ((cReducedQuality and rqNoBackground) = 0) then 
              glClearColor(SkyColor.r / 255, SkyColor.g / 255, SkyColor.b / 255, 0.99)
         else glClearColor(RQSkyColor.r / 255, RQSkyColor.g / 255, RQSkyColor.b / 255, 0.99);
+
         StoreRelease(true);
         StoreLoad(true);
         ResetLand;