From 91e54c01ed08d0de637112103eeea48760a87f08 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Sat, 30 Dec 2006 11:17:17 +0000 Subject: [PATCH] using the function pointer time() doesn't make any sense. Passing down the variable instead looks like the obvious fix. --- code/client/cl_keys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c index 14be81e7..ed601bed 100644 --- a/code/client/cl_keys.c +++ b/code/client/cl_keys.c @@ -980,7 +980,7 @@ void CL_InitKeyCommands( void ) { CL_AddKeyUpCommands =================== */ -void CL_AddKeyUpCommands( int key, char *kb ) { +void CL_AddKeyUpCommands( int key, char *kb, unsigned time) { int i; char button[1024], *buttonPtr; char cmd[1024]; @@ -1126,7 +1126,7 @@ void CL_KeyEvent (int key, qboolean down, unsigned time) { if (!down) { kb = keys[key].binding; - CL_AddKeyUpCommands( key, kb ); + CL_AddKeyUpCommands( key, kb, time ); if ( cls.keyCatchers & KEYCATCH_UI && uivm ) { VM_Call( uivm, UI_KEY_EVENT, key, down );