- Fixed: Options selected in Strife dialogues using the number keys were off by one.

SVN r2972 (trunk)
This commit is contained in:
Randy Heit 2010-11-03 02:17:08 +00:00
parent 810ca55e2a
commit db2147c700

View file

@ -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);