diff --git a/src/about.c b/src/about.c index 9d15370..f6dc30a 100644 --- a/src/about.c +++ b/src/about.c @@ -34,8 +34,8 @@ int About_Keydown(struct Game *game, ALLEGRO_EVENT *ev) { UnloadGameState(game); game->gamestate = GAMESTATE_LOADING; game->loadstate = GAMESTATE_MENU; - return 0; } + return 0; } void About_Preload(struct Game *game) { game->about.image = al_load_bitmap( "data/table.png" ); diff --git a/src/level.c b/src/level.c index 9a40371..6e484d6 100644 --- a/src/level.c +++ b/src/level.c @@ -21,12 +21,12 @@ void Level_Load(struct Game *game) { Level_Draw(game); } int Level_Keydown(struct Game *game, ALLEGRO_EVENT *ev) { - //if (ev->keyboard.keycode == ALLEGRO_KEY_ESCAPE) { + if (ev->keyboard.keycode == ALLEGRO_KEY_ESCAPE) { UnloadGameState(game); game->gamestate = GAMESTATE_LOADING; game->loadstate = GAMESTATE_MENU; - return 0; - //} + } + return 0; } void Level_Preload(struct Game *game) { PrintConsole(game, "Initializing level %d...", game->level.current_level);