mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-04-23 11:29:49 +02:00
fix keyboard events on about screen
This commit is contained in:
parent
ba0ebf83fa
commit
c847489730
1 changed files with 2 additions and 2 deletions
4
about.c
4
about.c
|
@ -19,12 +19,12 @@ void About_Load(struct Game *game) {
|
|||
al_destroy_bitmap(game->about.fade_bitmap);
|
||||
}
|
||||
int About_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;
|
||||
}
|
||||
//}
|
||||
}
|
||||
void About_Preload(struct Game *game) {
|
||||
game->about.image = al_load_bitmap( "table.png" );
|
||||
|
|
Loading…
Add table
Reference in a new issue