set time and self when calling ClientCommand

This commit is contained in:
Bill Currie 2007-05-07 11:16:29 +00:00 committed by Jeff Teunissen
parent 7af2378e03
commit 32733ef3d9
1 changed files with 3 additions and 0 deletions

View File

@ -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++)