From 32733ef3d952fc224399c6e9c4b0c9b34c37df2a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 7 May 2007 11:16:29 +0000 Subject: [PATCH] set time and self when calling ClientCommand --- qw/source/sv_pr_cpqw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qw/source/sv_pr_cpqw.c b/qw/source/sv_pr_cpqw.c index 13c907019..a50bcb42b 100644 --- a/qw/source/sv_pr_cpqw.c +++ b/qw/source/sv_pr_cpqw.c @@ -752,6 +752,9 @@ cpqw_user_cmd (void) if (argc > 7) argc = 7; + *sv_globals.time = sv.time; + *sv_globals.self = EDICT_TO_PROG (&sv_pr_state, sv_player); + PR_PushFrame (pr); P_FLOAT (pr, 0) = argc; for (i = 0; i < argc; i++)