QTfrontend/main.cpp
changeset 6600 5810e42d8375
parent 6579 fc52f7c22c9b
child 6616 f77bb02b669f
equal deleted inserted replaced
6599:1d3746138113 6600:5810e42d8375
    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?