Skip to content

Commit

Permalink
v0.9.9.2 bot team change smallfix
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen L. <lrq3000@gmail.com>
  • Loading branch information
lrq3000 committed Mar 22, 2012
1 parent be80c2e commit 7d5f1dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ put this as a separate patch for ioquake3
TODO TODO
---- ----


* remove developer prints

* port to the latest openarena engine based on the latest ioquake3 (should change the demoExt management in files.c) * port to the latest openarena engine based on the latest ioquake3 (should change the demoExt management in files.c)


SHOULD DO (but not now) SHOULD DO (but not now)
Expand Down Expand Up @@ -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) * 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. * many "A demo is already being recorded/played. Use demo_stop and retry." messages printed when playing a demo client-side.

* remove developer prints
5 changes: 2 additions & 3 deletions code/server/sv_demo.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -684,9 +684,8 @@ void SV_DemoReadClientCommand( msg_t *msg )
num = MSG_ReadByte(msg); num = MSG_ReadByte(msg);
cmd = MSG_ReadString(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) Cmd_RestoreCmdContext(); // Restore the context (tokenized strings)
} }


Expand Down

0 comments on commit 7d5f1dd

Please sign in to comment.