keydown is a bitmask, not a qboolean.
This commit is contained in:
parent
21d3080fbe
commit
c7eb4fb3b0
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ static unsigned int IN_GetKeyDest(void)
|
||||||
|
|
||||||
qboolean QDECL Plug_Input_IsKeyDown(int key)
|
qboolean QDECL Plug_Input_IsKeyDown(int key)
|
||||||
{
|
{
|
||||||
extern qboolean keydown[K_MAX];
|
extern unsigned int keydown[K_MAX];
|
||||||
if (key >= 0 && key < K_MAX)
|
if (key >= 0 && key < K_MAX)
|
||||||
return !!keydown[key];
|
return !!keydown[key];
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue