mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
Make sure runes get saved to saved games, instead of getting lost or corrupted on map restart.
This commit is contained in:
parent
074c31e414
commit
2bb1c8c96f
1 changed files with 8 additions and 0 deletions
|
@ -1209,6 +1209,7 @@ void Host_Savegame_f (void)
|
||||||
fprintf (f, "sv.particle_precache %i \"%s\"\n", i, sv.particle_precache[i]);
|
fprintf (f, "sv.particle_precache %i \"%s\"\n", i, sv.particle_precache[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprintf (f, "sv.serverflags %i\n", svs.serverflags);
|
||||||
for (i = NUM_BASIC_SPAWN_PARMS ; i < NUM_TOTAL_SPAWN_PARMS ; i++)
|
for (i = NUM_BASIC_SPAWN_PARMS ; i < NUM_TOTAL_SPAWN_PARMS ; i++)
|
||||||
{
|
{
|
||||||
if (svs.clients->spawn_parms[i])
|
if (svs.clients->spawn_parms[i])
|
||||||
|
@ -1390,6 +1391,13 @@ void Host_Loadgame_f (void)
|
||||||
if (idx >= 1 && idx < MAX_PARTICLETYPES)
|
if (idx >= 1 && idx < MAX_PARTICLETYPES)
|
||||||
sv.particle_precache[idx] = (const char *)Hunk_Strdup (com_token, "particle_precache");
|
sv.particle_precache[idx] = (const char *)Hunk_Strdup (com_token, "particle_precache");
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(com_token, "sv.serverflags") || !strcmp(com_token, "svs.serverflags"))
|
||||||
|
{
|
||||||
|
int fl;
|
||||||
|
ext = COM_Parse(ext);
|
||||||
|
fl = atoi(com_token);
|
||||||
|
svs.serverflags = fl;
|
||||||
|
}
|
||||||
else if (!strcmp(com_token, "spawnparm"))
|
else if (!strcmp(com_token, "spawnparm"))
|
||||||
{
|
{
|
||||||
int idx;
|
int idx;
|
||||||
|
|
Loading…
Reference in a new issue