Merge pull request #80 from devnexen/savegame_upd_to_match_yquake2

savegame to match more main repo
This commit is contained in:
Yamagi 2021-04-13 12:58:31 +02:00 committed by GitHub
commit f0ebf1addc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -795,10 +795,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);