mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- Fixed: Options selected in Strife dialogues using the number keys were off by one.
SVN r2972 (trunk)
This commit is contained in:
parent
810ca55e2a
commit
db2147c700
1 changed files with 1 additions and 1 deletions
|
@ -914,7 +914,7 @@ public:
|
||||||
{
|
{
|
||||||
if (ev->type == EV_GUI_Event && ev->subtype == EV_GUI_Char && ev->data1 >= '0' && ev->data1 <= '9')
|
if (ev->type == EV_GUI_Event && ev->subtype == EV_GUI_Char && ev->data1 >= '0' && ev->data1 <= '9')
|
||||||
{ // Activate an item of type numberedmore (dialogue only)
|
{ // Activate an item of type numberedmore (dialogue only)
|
||||||
mSelection = ev->data1 == '0' ? 10 : ev->data1 - '0';
|
mSelection = ev->data1 == '0' ? 9 : ev->data1 - '1';
|
||||||
return MenuEvent(MKEY_Enter, false);
|
return MenuEvent(MKEY_Enter, false);
|
||||||
}
|
}
|
||||||
return Super::Responder(ev);
|
return Super::Responder(ev);
|
||||||
|
|
Loading…
Reference in a new issue