git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1520 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-29 22:04:02 +00:00
parent 1a471ff470
commit dcb6cd6950
+6 -2
View File
@@ -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;
}
};