mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
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:
parent
739409973a
commit
91e54c01ed
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue