CL_Disconnect ();
Host_ShutdownServer();
- // remove console or menu
+ // remove menu
key_dest = key_game;
- key_consoleactive = 0;
svs.serverflags = 0; // haven't completed an episode yet
allowcheats = sv_cheats.integer != 0;
if (cmd_source != src_command)
return;
- // remove console or menu
+ // remove menu
key_dest = key_game;
- key_consoleactive = 0;
SV_VM_Begin();
SV_SaveSpawnparms ();
if (cmd_source != src_command)
return;
- // remove console or menu
+ // remove menu
key_dest = key_game;
- key_consoleactive = 0;
allowcheats = sv_cheats.integer != 0;
strcpy(mapname, sv.name);
// send some stats
MSG_WriteByte (&host_client->netconnection->message, svc_updatestat);
MSG_WriteByte (&host_client->netconnection->message, STAT_TOTALSECRETS);
- MSG_WriteLong (&host_client->netconnection->message, prog->globals.server->total_secrets);
+ MSG_WriteLong (&host_client->netconnection->message, (int)prog->globals.server->total_secrets);
MSG_WriteByte (&host_client->netconnection->message, svc_updatestat);
MSG_WriteByte (&host_client->netconnection->message, STAT_TOTALMONSTERS);
- MSG_WriteLong (&host_client->netconnection->message, prog->globals.server->total_monsters);
+ MSG_WriteLong (&host_client->netconnection->message, (int)prog->globals.server->total_monsters);
MSG_WriteByte (&host_client->netconnection->message, svc_updatestat);
MSG_WriteByte (&host_client->netconnection->message, STAT_SECRETS);
- MSG_WriteLong (&host_client->netconnection->message, prog->globals.server->found_secrets);
+ MSG_WriteLong (&host_client->netconnection->message, (int)prog->globals.server->found_secrets);
MSG_WriteByte (&host_client->netconnection->message, svc_updatestat);
MSG_WriteByte (&host_client->netconnection->message, STAT_MONSTERS);
- MSG_WriteLong (&host_client->netconnection->message, prog->globals.server->killed_monsters);
+ MSG_WriteLong (&host_client->netconnection->message, (int)prog->globals.server->killed_monsters);
// send a fixangle
// Never send a roll angle, because savegames can catch the server
if (Cmd_Argc() > 2 && strcmp(Cmd_Argv(1), "#") == 0)
{
- i = atof(Cmd_Argv(2)) - 1;
+ i = (int)(atof(Cmd_Argv(2)) - 1);
if (i < 0 || i >= svs.maxclients || !(host_client = svs.clients + i)->active)
return;
byNumber = true;
if (e->fields.server->frame >= m->numframes)
e->fields.server->frame = m->numframes - 1;
- PrintFrameName (m, e->fields.server->frame);
+ PrintFrameName (m, (int)e->fields.server->frame);
}
/*
if (e->fields.server->frame < 0)
e->fields.server->frame = 0;
- PrintFrameName (m, e->fields.server->frame);
+ PrintFrameName (m, (int)e->fields.server->frame);
}
/*