equal
deleted
inserted
replaced
93 //Hedgewars birthday? |
93 //Hedgewars birthday? |
94 else if (date.month() == 10 && date.day() == 31) |
94 else if (date.month() == 10 && date.day() == 31) |
95 { |
95 { |
96 season = SEASON_HWBDAY; |
96 season = SEASON_HWBDAY; |
97 years_since_foundation = date.year() - 2004; |
97 years_since_foundation = date.year() - 2004; |
|
98 } |
|
99 else if (date.month() == 4 && date.day() == 1) |
|
100 { |
|
101 season = SEASON_APRIL1; |
98 } |
102 } |
99 //Easter? |
103 //Easter? |
100 else if (calculateEaster(date.year()) == date) |
104 else if (calculateEaster(date.year()) == date) |
101 season = SEASON_EASTER; |
105 season = SEASON_EASTER; |
102 else |
106 else |
421 switch (season) |
425 switch (season) |
422 { |
426 { |
423 case SEASON_CHRISTMAS : |
427 case SEASON_CHRISTMAS : |
424 fname = "christmas.css"; |
428 fname = "christmas.css"; |
425 break; |
429 break; |
|
430 case SEASON_APRIL1 : |
|
431 fname = "april1.css"; |
|
432 break; |
426 case SEASON_EASTER : |
433 case SEASON_EASTER : |
427 fname = "easter.css"; |
434 fname = "easter.css"; |
428 break; |
435 break; |
429 case SEASON_HWBDAY : |
436 case SEASON_HWBDAY : |
430 fname = "birthday.css"; |
437 fname = "birthday.css"; |