mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-01-31 11:20:32 +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
|
CL_AddKeyUpCommands
|
||||||
===================
|
===================
|
||||||
*/
|
*/
|
||||||
void CL_AddKeyUpCommands( int key, char *kb ) {
|
void CL_AddKeyUpCommands( int key, char *kb, unsigned time) {
|
||||||
int i;
|
int i;
|
||||||
char button[1024], *buttonPtr;
|
char button[1024], *buttonPtr;
|
||||||
char cmd[1024];
|
char cmd[1024];
|
||||||
|
@ -1126,7 +1126,7 @@ void CL_KeyEvent (int key, qboolean down, unsigned time) {
|
||||||
if (!down) {
|
if (!down) {
|
||||||
kb = keys[key].binding;
|
kb = keys[key].binding;
|
||||||
|
|
||||||
CL_AddKeyUpCommands( key, kb );
|
CL_AddKeyUpCommands( key, kb, time );
|
||||||
|
|
||||||
if ( cls.keyCatchers & KEYCATCH_UI && uivm ) {
|
if ( cls.keyCatchers & KEYCATCH_UI && uivm ) {
|
||||||
VM_Call( uivm, UI_KEY_EVENT, key, down );
|
VM_Call( uivm, UI_KEY_EVENT, key, down );
|
||||||
|
|
Loading…
Reference in a new issue