diff --git a/README.md b/README.md index 99e190fc..9a79598a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/code/server/sv_demo.c b/code/server/sv_demo.c index e655b977..fc79e0e1 100644 --- a/code/server/sv_demo.c +++ b/code/server/sv_demo.c @@ -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) }