summaryrefslogtreecommitdiff
path: root/src/server/sv_main.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-05-16 20:41:57 +0000
committerTim Angus <tim@ngus.net>2006-05-16 20:41:57 +0000
commit5c0efda0ef811b2bafedb2b4f53b083a9b90e1b4 (patch)
tree972db3bf7fabe5293b383bb51fcb1aa74cc0e309 /src/server/sv_main.c
parentf68a49a146f20c7b6fc8e19dd1c4e6d58cf473e9 (diff)
* Removal of bot code
* Refactored botlib parsing code into qcommon
Diffstat (limited to 'src/server/sv_main.c')
-rw-r--r--src/server/sv_main.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/server/sv_main.c b/src/server/sv_main.c
index 2e3135b6..f4d960d9 100644
--- a/src/server/sv_main.c
+++ b/src/server/sv_main.c
@@ -104,11 +104,6 @@ int SV_ReplacePendingServerCommands( client_t *client, const char *cmd ) {
sscanf(client->reliableCommands[ index ], "cs %i", &csnum2);
if ( csnum1 == csnum2 ) {
Q_strncpyz( client->reliableCommands[ index ], cmd, sizeof( client->reliableCommands[ index ] ) );
- /*
- if ( client->netchan.remoteAddress.type != NA_BOT ) {
- Com_Printf( "WARNING: client %i removed double pending config string %i: %s\n", client-svs.clients, csnum1, cmd );
- }
- */
return qtrue;
}
}
@@ -660,10 +655,6 @@ void SV_CalcPings( void ) {
cl->ping = 999;
continue;
}
- if ( cl->gentity->r.svFlags & SVF_BOT ) {
- cl->ping = 0;
- continue;
- }
total = 0;
count = 0;
@@ -756,7 +747,7 @@ qboolean SV_CheckPaused( void ) {
// only pause if there is just a single client connected
count = 0;
for (i=0,cl=svs.clients ; i < sv_maxclients->integer ; i++,cl++) {
- if ( cl->state >= CS_CONNECTED && cl->netchan.remoteAddress.type != NA_BOT ) {
+ if ( cl->state >= CS_CONNECTED ) {
count++;
}
}
@@ -809,8 +800,6 @@ void SV_Frame( int msec ) {
sv.timeResidual += msec;
- if (!com_dedicated->integer) SV_BotFrame (sv.time + sv.timeResidual);
-
if ( com_dedicated->integer && sv.timeResidual < frameMsec ) {
// NET_Sleep will give the OS time slices until either get a packet
// or time enough for a server frame has gone by
@@ -859,8 +848,6 @@ void SV_Frame( int msec ) {
// update ping based on the all received frames
SV_CalcPings();
- if (com_dedicated->integer) SV_BotFrame (sv.time);
-
// run the game simulation in chunks
while ( sv.timeResidual >= frameMsec ) {
sv.timeResidual -= frameMsec;