Log truncated revision strings at debug level 1 instead of 0.

This commit is contained in:
Jonathan G Rennison
2015-10-16 19:31:40 +01:00
parent ffe17bc986
commit bbe4ea7f50
3 changed files with 6 additions and 6 deletions

View File

@@ -415,7 +415,7 @@ void GamelogRevision()
if (lc == NULL) return;
memset(lc->revision.text, 0, sizeof(lc->revision.text));
strecpy(lc->revision.text, _openttd_revision, lastof(lc->revision.text));
strecpy(lc->revision.text, _openttd_revision, lastof(lc->revision.text), true);
lc->revision.slver = SAVEGAME_VERSION;
lc->revision.modified = _openttd_revision_modified;
lc->revision.newgrf = _openttd_newgrf_version;