]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_save.c
server: Eliminate references to cls.state in server code
[xonotic/darkplaces.git] / sv_save.c
index f85d97f2103c559d4f261640068f26de926f952e..3c7940b8afae637524e3dfb2287eaac1fbe4a69f 100644 (file)
--- a/sv_save.c
+++ b/sv_save.c
@@ -572,6 +572,6 @@ void SV_Loadgame_f(cmd_state_t *cmd)
                Con_Printf("SV_Loadgame_f: finished\n");
 
        // make sure we're connected to loopback
-       if (sv.active && cls.state == ca_disconnected)
-               CL_EstablishConnection("local:1", -2);
+       if(sv.active && host.hook.ConnectLocal)
+               host.hook.ConnectLocal();
 }