# HG changeset patch
# User nemo
# Date 1314721953 14400
# Node ID 718f98a9df122d73f3ba9add4d1654865199de31
# Parent  637fb1e6487bdf2ec1edce6811ddbaff013a42b3
Reset to SD sky colour if in SD

diff -r 637fb1e6487b -r 718f98a9df12 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;