From f9603c1e49e8a54e100c0127e259b4c1d51a15fc Mon Sep 17 00:00:00 2001 From: ludwig Date: Sat, 30 Dec 2006 11:17:17 +0000 Subject: using the function pointer time() doesn't make any sense. Passing down the variable instead looks like the obvious fix. git-svn-id: svn://svn.icculus.org/quake3/trunk@1020 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_keys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/client') diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c index 14be81e..ed601be 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 ); -- cgit v1.2.3