mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 19:16:44 +01:00
fix compiler warnings
This commit is contained in:
parent
5b19d2bfbf
commit
8c2ea46086
2 changed files with 4 additions and 4 deletions
|
@ -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" );
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue