git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11192
d7cf8633-e32d-0410-b094-
e92efae38249
void Host_Savegame_f (void)
{
char name[MAX_QPATH];
+ qboolean deadflag = false;
if (!sv.active)
{
return;
}
+ SV_VM_Begin();
+ deadflag = cl.islocalgame && svs.clients[0].active && PRVM_serveredictfloat(svs.clients[0].edict, deadflag);
+ SV_VM_End();
+
if (cl.islocalgame)
{
// singleplayer checks
return;
}
- if (svs.clients[0].active && PRVM_serveredictfloat(svs.clients[0].edict, deadflag))
+ if (deadflag)
{
Con_Print("Can't savegame with a dead player\n");
return;