mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
messed up the logic for ucmd_unkown
This commit is contained in:
parent
a0612e27b9
commit
8950f3188f
2 changed files with 2 additions and 2 deletions
|
@ -201,7 +201,7 @@ client_exec_command (client_t *cl, const char *s)
|
|||
u = (ucmd_t*) Hash_Find (ucmd_table, qtv_args->argv[0]->str);
|
||||
|
||||
if (!u) {
|
||||
if (ucmd_unknown && !ucmd_unknown ()) {
|
||||
if (!ucmd_unknown || !ucmd_unknown ()) {
|
||||
qtv_begin_redirect (RD_CLIENT, cl);
|
||||
qtv_printf ("Bad user command: %s\n", qtv_args->argv[0]->str);
|
||||
qtv_end_redirect ();
|
||||
|
|
|
@ -1391,7 +1391,7 @@ SV_ExecuteUserCommand (const char *s)
|
|||
u = (ucmd_t*) Hash_Find (ucmd_table, sv_args->argv[0]->str);
|
||||
|
||||
if (!u) {
|
||||
if (ucmd_unknown && !ucmd_unknown ()) {
|
||||
if (!ucmd_unknown || !ucmd_unknown ()) {
|
||||
SV_BeginRedirect (RD_CLIENT);
|
||||
SV_Printf ("Bad user command: %s\n", sv_args->argv[0]->str);
|
||||
SV_EndRedirect ();
|
||||
|
|
Loading…
Reference in a new issue