# HG changeset patch # User unc0rr # Date 1327579448 -14400 # Node ID 5810e42d8375867a675d929e14bcba155c3e5e08 # Parent 1d37461381139e6d9654cc8051082e91c27a5245 Haha, I was greatly puzzled by "date.month() == 10 && date.daysInMonth() == 31" :D diff -r 1d3746138113 -r 5810e42d8375 QTfrontend/main.cpp --- a/QTfrontend/main.cpp Thu Jan 26 02:06:57 2012 +0100 +++ b/QTfrontend/main.cpp Thu Jan 26 16:04:08 2012 +0400 @@ -68,11 +68,11 @@ QDate date = QDate::currentDate(); //Christmas? - if (date.month() == 12 && date.daysInMonth() >= 24 - && date.daysInMonth() <= 26) + if (date.month() == 12 && date.day() >= 24 + && date.day() <= 26) season = SEASON_CHRISTMAS; //Hedgewars birthday? - else if (date.month() == 10 && date.daysInMonth() == 31) + else if (date.month() == 10 && date.day() == 31) { season = SEASON_HWBDAY; years_since_foundation = date.year() - 2004;