summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bc0266d)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12989
d7cf8633-e32d-0410-b094-
e92efae38249
if(SV_IsLocalGame() == 1)
{
// singleplayer checks
if(SV_IsLocalGame() == 1)
{
// singleplayer checks
- if (!(svs.clients[0].active && PRVM_serveredictfloat(svs.clients[0].edict, deadflag)))
+ if ((svs.clients[0].active && PRVM_serveredictfloat(svs.clients[0].edict, deadflag)))
{
Con_Print("Can't savegame with a dead player\n");
return false;
}
{
Con_Print("Can't savegame with a dead player\n");
return false;
}
- if(!host.hook.CL_Intermission || !host.hook.CL_Intermission())
+ if(host.hook.CL_Intermission && host.hook.CL_Intermission())
{
Con_Print("Can't save in intermission.\n");
return false;
{
Con_Print("Can't save in intermission.\n");
return false;
*/
int SV_IsLocalGame(void)
{
*/
int SV_IsLocalGame(void)
{
- if (sv.active && LHNETADDRESS_GetAddressType(&host_client->netconnection->peeraddress) == LHNETADDRESSTYPE_LOOP)
+ if (sv.active && &svs.clients[0] && LHNETADDRESS_GetAddressType(&svs.clients[0].netconnection->peeraddress) == LHNETADDRESSTYPE_LOOP)
return svs.maxclients;
return 0;
}
return svs.maxclients;
return 0;
}