fix keyboard events on about screen

This commit is contained in:
Sebastian Krzyszkowiak 2012-02-18 06:30:30 +01:00
parent ba0ebf83fa
commit c847489730

View file

@ -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" );