Skip to content

Commit

Permalink
New year is on January 1, not February 1
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Feb 1, 2018
1 parent 5bf6f6d commit c73e2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/player.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit c73e2a7

Please sign in to comment.