mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-29 07:22:30 +00:00
Merge pull request #80 from devnexen/savegame_upd_to_match_yquake2
savegame to match more main repo
This commit is contained in:
commit
f0ebf1addc
1 changed files with 4 additions and 4 deletions
|
@ -795,10 +795,10 @@ WriteGame(const char *filename, qboolean autosave)
|
||||||
/* Savegame identification */
|
/* Savegame identification */
|
||||||
memset(&sv, 0, sizeof(sv));
|
memset(&sv, 0, sizeof(sv));
|
||||||
|
|
||||||
strncpy(sv.ver, SAVEGAMEVER, sizeof(sv.ver) - 1);
|
Q_strlcpy(sv.ver, SAVEGAMEVER, sizeof(sv.ver) - 1);
|
||||||
strncpy(sv.game, GAMEVERSION, sizeof(sv.game) - 1);
|
Q_strlcpy(sv.game, GAMEVERSION, sizeof(sv.game) - 1);
|
||||||
strncpy(sv.os, YQ2OSTYPE, sizeof(sv.os) - 1);
|
Q_strlcpy(sv.os, YQ2OSTYPE, sizeof(sv.os) - 1);
|
||||||
strncpy(sv.arch, YQ2ARCH, sizeof(sv.arch) - 1);
|
Q_strlcpy(sv.arch, YQ2ARCH, sizeof(sv.arch) - 1);
|
||||||
|
|
||||||
fwrite(&sv, sizeof(sv), 1, f);
|
fwrite(&sv, sizeof(sv), 1, f);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue