mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
New year is on January 1, not February 1
This commit is contained in:
parent
5bf6f6db3c
commit
c73e2a7ba8
|
@ -84,7 +84,7 @@ void CPlayer::Reset()
|
|||
struct tm* timeinfo;
|
||||
time(&rawtime);
|
||||
timeinfo = localtime(&rawtime);
|
||||
if ((timeinfo->tm_mon == 11 && timeinfo->tm_mday == 31) || (timeinfo->tm_mon == 1 && timeinfo->tm_mday == 1))
|
||||
if ((timeinfo->tm_mon == 11 && timeinfo->tm_mday == 31) || (timeinfo->tm_mon == 0 && timeinfo->tm_mday == 1))
|
||||
{ // New Year
|
||||
m_DefEmote = EMOTE_HAPPY;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue