Permalink
Browse files

v0.9.9.2 bot team change smallfix

Signed-off-by: Stephen L. <lrq3000@gmail.com>
  • Loading branch information...
1 parent be80c2e commit 7d5f1dd0c580ea6b3b6bbab770d76d166eb88bff @lrq3000 committed Mar 22, 2012
Showing with 4 additions and 5 deletions.
  1. +2 −2 README.md
  2. +2 −3 code/server/sv_demo.c
View
@@ -58,8 +58,6 @@ put this as a separate patch for ioquake3
TODO
----
-* remove developer prints
-
* port to the latest openarena engine based on the latest ioquake3 (should change the demoExt management in files.c)
SHOULD DO (but not now)
@@ -229,3 +227,5 @@ was because of demo initial time that was too small (400) and sv.time too high,
* SV_DemoChangeMaxClients() does not consider privateclients reserved slots when moving clients (eg: with 2 privateslots: 2 -> 12 -> 0)
* many "A demo is already being recorded/played. Use demo_stop and retry." messages printed when playing a demo client-side.
+
+* remove developer prints
View
@@ -684,9 +684,8 @@ void SV_DemoReadClientCommand( msg_t *msg )
num = MSG_ReadByte(msg);
cmd = MSG_ReadString(msg);
- if ( ! (strlen(Info_ValueForKey( sv.configstrings[CS_PLAYERS + num], "skill" )) && !Q_strncmp(cmd, "team", 4) ) ) { // FIXME? is bot checking (skill) really necessary?
- SV_ExecuteClientCommand(&svs.clients[num], cmd, qtrue); // 3rd arg = clientOK, and it's necessarily true since we saved the command in the demo (else it wouldn't be saved)
- }
+ SV_ExecuteClientCommand(&svs.clients[num], cmd, qtrue); // 3rd arg = clientOK, and it's necessarily true since we saved the command in the demo (else it wouldn't be saved)
+
Cmd_RestoreCmdContext(); // Restore the context (tokenized strings)
}

0 comments on commit 7d5f1dd

Please sign in to comment.