jonoxia / rpgbase

Generic Node.js/HTML5 role-playing game client/server
8 stars 6 forks source link

Bringing up the field menu during the start of battle animation causes game-destroying glitch #31

Closed jonoxia closed 11 years ago

jonoxia commented 11 years ago

All game mode transitions should go through gameEngine, which will apply some kind of lock to make mode transitions atomic.

jonoxia commented 11 years ago

Oh, this wasn't happening for the reason I thought. The field menu has nothing to do with it. Rather, the battle system was (correctly) receiving the cancel button press; it should have been ignoring it since it is not a freely-exitable menu mode, but a flaw in the handle key logic was causing it to be cancelable when it had 0 menus in the stack.