Quake 2 Oop Conversion Project - Source Diff 3.05 vs 3.14 - g_save.c
diff -s -r q2_305/g_save.c q2_314/g_save.c
Left File < - 3.05/g_save.c
Right File > - 3.14/g_save.c
Back to Index
11c11
< {"decel", FOFS(accel), F_FLOAT},

---
> {"decel", FOFS(decel), F_FLOAT},
92a93
> {"", FOFS(chain), F_EDICT},
111a113
> {"", CLOFS(pers.lastweapon), F_ITEM},
122c124,125
< only happens when a new game is begun
---
> only happens when a new game is started or a save game
> is loaded.
127,128d129
< int i;
<
140a142,144
> // noset vars
> dedicated = gi.cvar ("dedicated", "0", CVAR_NOSET);
>
143,144c147,149
< deathmatch = gi.cvar ("deathmatch", "0", CVAR_SERVERINFO|CVAR_LATCH);
< skill = gi.cvar ("skill", "1", CVAR_SERVERINFO|CVAR_LATCH);
---
> gi.cvar ("gamename", GAMEVERSION , CVAR_SERVERINFO | CVAR_LATCH);
> gi.cvar ("gamedate", __DATE__ , CVAR_SERVERINFO | CVAR_LATCH);
>
145a151,153
> deathmatch = gi.cvar ("deathmatch", "0", CVAR_LATCH);
> coop = gi.cvar ("coop", "0", CVAR_LATCH);
> skill = gi.cvar ("skill", "1", CVAR_LATCH);
152,153c160,161
< noexit = gi.cvar ("noexit", "1", CVAR_SERVERINFO);
< samelevel = gi.cvar ("samelevel", "0", CVAR_SERVERINFO);
---
> password = gi.cvar ("password", "", CVAR_USERINFO);
>
155,157d162
< g_unlimited_ammo = gi.cvar ("g_unlimited_ammo", "0", CVAR_SERVERINFO);
< dm_respawn = gi.cvar ("dm_respawn", "2", CVAR_SERVERINFO);
< nomonsters = gi.cvar ("nomonsters", "0", CVAR_SERVERINFO);
168c173
< Com_sprintf (game.helpmessage1, sizeof(game.helpmessage1), "No help message1");
---
> Com_sprintf (game.helpmessage1, sizeof(game.helpmessage1), "");
170c175
< Com_sprintf (game.helpmessage2, sizeof(game.helpmessage2), "No help message2");
---
> Com_sprintf (game.helpmessage2, sizeof(game.helpmessage2), "");
174,175d178
< if (maxclients->value * 8 > game.maxentities)
< game.maxentities = maxclients->value * 8;
183,187d185
< for (i=0 ; i<game.maxclients ; i++)
< {
< InitClientPersistant (&game.clients[i]);
< InitClientResp (&game.clients[i]);
< }
392c390
< void WriteGame (char *filename)
---
> void WriteGame (char *filename, qboolean autosave)
398c396,397
< SaveClientData ();
---
> if (!autosave)
> SaveClientData ();
407a407
> game.autosaved = autosave;
408a409,410
> game.autosaved = false;
>
578,580d579
< // write out all the configstrings
< // fwrite (sv.configstrings, sizeof(sv.configstrings), 1, f);
<
601c600
< SpawnEntities will allready have been called on the
---
> SpawnEntities will already have been called on the
608a608,609
>
> No clients are connected yet.
673c674
< // wipe all the clients
---
> // mark all clients as unconnected
677,678c678,679
< gi.unlinkentity (ent);
< ent->inuse = false;
---
> ent->client = game.clients + i;
> ent->client->pers.connected = false;
681c682
< // // fire any cross-level triggers here
---
> // do any load time things at this point
684,686c685,687
< if (!g_edicts[i].classname)
< continue;
< if (strcmp(g_edicts[i].classname, "target_crosslevel_target") != 0)
---
> ent = &g_edicts[i];
>
> if (!ent->inuse)
688c689,693
< g_edicts[i].nextthink = level.time + g_edicts[i].delay;
---
>
> // fire any cross-level triggers
> if (ent->classname)
> if (strcmp(ent->classname, "target_crosslevel_target") == 0)
> ent->nextthink = level.time + ent->delay;
691d695
<