key menu
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1520 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -394,7 +394,11 @@ struct mitemkeyinput : mitem
|
||||
draw_text(keyname ? keyname : "?", x+w-tk, y);
|
||||
}
|
||||
|
||||
virtual void init() { displaycurrentbind(); capture = false; }
|
||||
virtual void init()
|
||||
{
|
||||
displaycurrentbind();
|
||||
capture = false;
|
||||
}
|
||||
|
||||
virtual void select() { capture = true; }
|
||||
|
||||
@@ -410,7 +414,7 @@ struct mitemkeyinput : mitem
|
||||
void displaycurrentbind()
|
||||
{
|
||||
keym *km = findbinda(bindcmd);
|
||||
if(km) keyname = km->name;
|
||||
keyname = km ? km->name : NULL;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user