flag dropping on heighfields, fixed menu hotkeys
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1641 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -572,8 +572,13 @@ bool menukey(int code, bool isdown, int unicode)
|
||||
case SDLK_9:
|
||||
if(curmenu->allowinput && curmenu->hotkeys)
|
||||
{
|
||||
mitem &m = *curmenu->items[code-SDLK_1];
|
||||
m.select();
|
||||
int idx = code-SDLK_1;
|
||||
if(curmenu->items.inrange(idx))
|
||||
{
|
||||
menuselect(curmenu, idx);
|
||||
mitem &m = *curmenu->items[idx];
|
||||
m.select();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user