don't send title keycode to State_Keydown function

This commit is contained in:
Sebastian Krzyszkowiak 2012-02-19 20:18:55 +01:00
parent 88f627ff52
commit 5adce49bf9

2
main.c
View file

@ -216,7 +216,7 @@ int main(int argc, char **argv){
if ((ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == ALLEGRO_KEY_TILDE)) { if ((ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == ALLEGRO_KEY_TILDE)) {
game.showconsole = !game.showconsole; game.showconsole = !game.showconsole;
} }
if (game.gamestate==GAMESTATE_LOADING) { else if (game.gamestate==GAMESTATE_LOADING) {
if (Loading_Keydown(&game, &ev)) break; if (Loading_Keydown(&game, &ev)) break;
} }
else if (game.gamestate==GAMESTATE_MENU) { else if (game.gamestate==GAMESTATE_MENU) {