Fix green color channel on themes with sd-tint (#566)
authorWuzzy <Wuzzy2@mail.ru>
Wed, 07 Feb 2018 07:54:18 +0100 (2018-02-07)
changeset 12916 6fede49bc103
parent 12915 4d3b52f1ba18
child 12917 8cc24173cd71
Fix green color channel on themes with sd-tint (#566)
ChangeLog.txt
hedgewars/uGears.pas
--- a/ChangeLog.txt	Wed Feb 07 07:38:37 2018 +0100
+++ b/ChangeLog.txt	Wed Feb 07 07:54:18 2018 +0100
@@ -16,6 +16,7 @@
 
 Theme customization:
  + Add fallback music with fallback-music and fallback-sd-music
+ * Fix green color channel on themes with sd-tint
 
 Lua API:
  + New call: WriteLnToChat(string): Add a line in the chat
--- a/hedgewars/uGears.pas	Wed Feb 07 07:38:37 2018 +0100
+++ b/hedgewars/uGears.pas	Wed Feb 07 07:54:18 2018 +0100
@@ -338,7 +338,7 @@
 
                     ChangeToSDClouds;
                     ChangeToSDFlakes;
-                    SetSkyColor(SDSkyColor.r * (SDTint.r/255) / 255, SDSkyColor.g * (SDTint.r/255) / 255, SDSkyColor.b * (SDTint.b/255) / 255);
+                    SetSkyColor(SDSkyColor.r * (SDTint.r/255) / 255, SDSkyColor.g * (SDTint.g/255) / 255, SDSkyColor.b * (SDTint.b/255) / 255);
                     Ammoz[amTardis].SkipTurns:= 9999;
                     Ammoz[amTardis].Probability:= 0;
                     end;