using the function pointer time() doesn't make any sense. Passing down

the variable instead looks like the obvious fix.
This commit is contained in:
Ludwig Nussel 2006-12-30 11:17:17 +00:00
parent 739409973a
commit 91e54c01ed
1 changed files with 2 additions and 2 deletions

View File

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