git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5347
d7cf8633-e32d-0410-b094-
e92efae38249
memset(&sv, 0, sizeof(sv));
memset(svs.clients, 0, svs.maxclients*sizeof(client_t));
+ PRVM_ResetProg();
+
SV_VM_End();
}
Con_Print("connect <serveraddress> : connect to a multiplayer game\n");
return;
}
- SV_VM_Begin();
- CL_EstablishConnection("local:1");
- SV_VM_End();
+ if( sv.active ) {
+ SV_VM_Begin();
+ CL_EstablishConnection(Cmd_Argv(1));
+ SV_VM_End();
+ } else {
+ CL_EstablishConnection(Cmd_Argv(1));
+ }
}