Merge pull request #63 from devnexen/savegame_upd_to_match_yquake2

savegame to match more main repo
This commit is contained in:
Yamagi 2021-04-13 12:58:55 +02:00 committed by GitHub
commit c25547e041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -781,10 +781,10 @@ WriteGame(const char *filename, qboolean autosave)
/* Savegame identification */
memset(&sv, 0, sizeof(sv));
strncpy(sv.ver, SAVEGAMEVER, sizeof(sv.ver) - 1);
strncpy(sv.game, GAMEVERSION, sizeof(sv.game) - 1);
strncpy(sv.os, YQ2OSTYPE, sizeof(sv.os) - 1);
strncpy(sv.arch, YQ2ARCH, sizeof(sv.arch) - 1);
Q_strlcpy(sv.ver, SAVEGAMEVER, sizeof(sv.ver) - 1);
Q_strlcpy(sv.game, GAMEVERSION, sizeof(sv.game) - 1);
Q_strlcpy(sv.os, YQ2OSTYPE, sizeof(sv.os) - 1);
Q_strlcpy(sv.arch, YQ2ARCH, sizeof(sv.arch) - 1);
fwrite(&sv, sizeof(sv), 1, f);