From 8c2ea46086be4b4631a3980250423bff65a64310 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Wed, 22 Feb 2012 15:21:28 +0100 Subject: [PATCH] fix compiler warnings --- src/about.c | 2 +- src/level.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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);