fix compiler warnings

This commit is contained in:
Sebastian Krzyszkowiak 2012-02-22 15:21:28 +01:00
parent 5b19d2bfbf
commit 8c2ea46086
2 changed files with 4 additions and 4 deletions

View file

@ -34,8 +34,8 @@ int About_Keydown(struct Game *game, ALLEGRO_EVENT *ev) {
UnloadGameState(game); UnloadGameState(game);
game->gamestate = GAMESTATE_LOADING; game->gamestate = GAMESTATE_LOADING;
game->loadstate = GAMESTATE_MENU; game->loadstate = GAMESTATE_MENU;
return 0;
} }
return 0;
} }
void About_Preload(struct Game *game) { void About_Preload(struct Game *game) {
game->about.image = al_load_bitmap( "data/table.png" ); game->about.image = al_load_bitmap( "data/table.png" );

View file

@ -21,12 +21,12 @@ void Level_Load(struct Game *game) {
Level_Draw(game); Level_Draw(game);
} }
int Level_Keydown(struct Game *game, ALLEGRO_EVENT *ev) { 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); UnloadGameState(game);
game->gamestate = GAMESTATE_LOADING; game->gamestate = GAMESTATE_LOADING;
game->loadstate = GAMESTATE_MENU; game->loadstate = GAMESTATE_MENU;
}
return 0; return 0;
//}
} }
void Level_Preload(struct Game *game) { void Level_Preload(struct Game *game) {
PrintConsole(game, "Initializing level %d...", game->level.current_level); PrintConsole(game, "Initializing level %d...", game->level.current_level);