[Fix] Can't change targets while toolkit is open.
This commit is contained in:
parent
dfb57c1775
commit
a153cb9a37
@ -116,7 +116,7 @@ void input_setKeybind(char* keybind, KeybindType type, int key, int reverse) {
|
|||||||
// abs : Whether or not it's an abs value (For those pesky joysticks.
|
// abs : Whether or not it's an abs value (For those pesky joysticks.
|
||||||
// =====================================================================
|
// =====================================================================
|
||||||
#define KEY(s) (strcmp(input_keybinds[keynum]->name, s)==0)
|
#define KEY(s) (strcmp(input_keybinds[keynum]->name, s)==0)
|
||||||
#define INGAME() (!paused)
|
#define INGAME() (!toolkit)
|
||||||
static void input_key(int keynum, double value, int abs) {
|
static void input_key(int keynum, double value, int abs) {
|
||||||
// Accelerating.
|
// Accelerating.
|
||||||
if(KEY("accel")) {
|
if(KEY("accel")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user