hedgewars/uStore.pas
changeset 9807 a44963cc6648
parent 9791 446e4919b738
child 9909 b2e868026bb0
--- 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;