New year is on January 1, not February 1

This commit is contained in:
def 2018-02-01 20:22:18 +01:00
parent 5bf6f6db3c
commit c73e2a7ba8

View file

@ -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;
}