christmas eve too (matches frontend)
authornemo
Wed, 18 Dec 2013 18:43:43 -0500
changeset 9807 a44963cc6648
parent 9806 091054b78cad
child 9808 37891ba5e10b
christmas eve too (matches frontend)
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Wed Dec 18 15:13:58 2013 -0500
+++ b/hedgewars/uStore.pas	Wed Dec 18 18:43:43 2013 -0500
@@ -242,11 +242,11 @@
                     NameTagTex:= RenderStringTexLim(Name, Clan^.Color, fnt16, cTeamHealthWidth);
                     if Hat = 'NoHat' then
                         begin
-                        if ((month = 4) and (md = 20)) then
-                            Hat := 'eastertop'; // Easter
-                        if ((month = 12) and (md = 25)) then
-                            Hat := 'Santa'; // Christmas
-                        if ((month = 10) and (md = 31)) then
+                        if (month = 4) and (md = 20) then
+                            Hat := 'eastertop'   // Easter
+                        else if (month = 12) and ((md = 25) or (md = 24)) then
+                            Hat := 'Santa'       // Christmas/Christmas Eve
+                        else if (month = 10) and (md = 31) then
                             Hat := 'fr_pumpkin'; // Halloween/Hedgewars' birthday
                         end;