equal
deleted
inserted
replaced
66 void checkSeason() |
66 void checkSeason() |
67 { |
67 { |
68 QDate date = QDate::currentDate(); |
68 QDate date = QDate::currentDate(); |
69 |
69 |
70 //Christmas? |
70 //Christmas? |
71 if (date.month() == 12 && date.daysInMonth() >= 24 |
71 if (date.month() == 12 && date.day() >= 24 |
72 && date.daysInMonth() <= 26) |
72 && date.day() <= 26) |
73 season = SEASON_CHRISTMAS; |
73 season = SEASON_CHRISTMAS; |
74 //Hedgewars birthday? |
74 //Hedgewars birthday? |
75 else if (date.month() == 10 && date.daysInMonth() == 31) |
75 else if (date.month() == 10 && date.day() == 31) |
76 { |
76 { |
77 season = SEASON_HWBDAY; |
77 season = SEASON_HWBDAY; |
78 years_since_foundation = date.year() - 2004; |
78 years_since_foundation = date.year() - 2004; |
79 } |
79 } |
80 //Easter? |
80 //Easter? |