mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +00:00
- fixed doublebind check with automap.
When no doublebinds get passed to C_DoKey it may not set the doubleclick flag. For the automap C_DoKey gets called twice, once with the automap bindings and once with the regular bindings and doubleclicks.
This commit is contained in:
parent
7f7edc4f72
commit
b082c50502
1 changed files with 1 additions and 1 deletions
|
@ -836,7 +836,7 @@ bool C_DoKey (event_t *ev, FKeyBindings *binds, FKeyBindings *doublebinds)
|
||||||
if (ev->type == EV_KeyDown)
|
if (ev->type == EV_KeyDown)
|
||||||
{ // Key pressed for a normal press
|
{ // Key pressed for a normal press
|
||||||
binding = binds->GetBinding(ev->data1);
|
binding = binds->GetBinding(ev->data1);
|
||||||
DClickTime[ev->data1] = nowtime + 571;
|
if (doublebinds != nullptr) DClickTime[ev->data1] = nowtime + 571;
|
||||||
}
|
}
|
||||||
else if (doublebinds != nullptr && DClicked[ev->data1])
|
else if (doublebinds != nullptr && DClicked[ev->data1])
|
||||||
{ // Key released from a double click
|
{ // Key released from a double click
|
||||||
|
|
Loading…
Reference in a new issue