From 27e83829c9c2b6ea0499b07dbfd7289abc0c90fd Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sun, 12 Apr 2015 08:06:20 +0000 Subject: [PATCH] Correct the month used in automatic names of savegames created by the "save" CON command. git-svn-id: https://svn.eduke32.com/eduke32@5135 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gameexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 4f6f8f552..ba261f70a 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -3420,7 +3420,7 @@ nullquote: time_t curtime = time(NULL); struct tm *timeptr = localtime(&curtime); Bsnprintf(ud.savegame[g_lastSaveSlot], sizeof(ud.savegame[g_lastSaveSlot]), "Auto %.4d%.2d%.2d %.2d%.2d%.2d\n", - timeptr->tm_year + 1900, timeptr->tm_mon, timeptr->tm_mday, + timeptr->tm_year + 1900, timeptr->tm_mon + 1, timeptr->tm_mday, timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); }