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:
driAn
2008-02-11 15:16:49 +00:00
parent ce678675f4
commit 968bbcca96
2 changed files with 18 additions and 6 deletions
+7 -2
View File
@@ -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: