From 631e3bc940657db3752b06c22b352d51d0c31933 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Sun, 26 Feb 2012 15:04:12 +0100 Subject: [PATCH] little fixes --- src/about.c | 2 +- src/map.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/about.c b/src/about.c index f577441..91a9545 100644 --- a/src/about.c +++ b/src/about.c @@ -49,7 +49,7 @@ void About_Preload(struct Game *game) { } game->about.text_bitmap = al_create_bitmap(al_get_display_width(game->display)*0.4, al_get_display_height(game->display)*2.35); al_set_target_bitmap(game->about.text_bitmap); - al_clear_to_color(al_map_rgba(255,0,0,0)); + al_clear_to_color(al_map_rgba(0,0,0,0)); al_draw_text(game->about.font, al_map_rgb(255,255,255), 0.5*al_get_bitmap_width(game->about.text_bitmap), 0.015*al_get_bitmap_height(game->about.text_bitmap), ALLEGRO_ALIGN_CENTRE, "Super Derpy: Muffin Attack"); al_draw_text(game->about.font, al_map_rgb(255,255,255), 0.5*al_get_bitmap_width(game->about.text_bitmap), 0.035*al_get_bitmap_height(game->about.text_bitmap), ALLEGRO_ALIGN_CENTRE, "Version 0.1"); diff --git a/src/map.c b/src/map.c index 13268f8..f68d3ff 100644 --- a/src/map.c +++ b/src/map.c @@ -58,6 +58,7 @@ int Map_Keydown(struct Game *game, ALLEGRO_EVENT *ev) { } else if ((ev->keyboard.keycode==ALLEGRO_KEY_LEFT) || (ev->keyboard.keycode==ALLEGRO_KEY_RIGHT) || (ev->keyboard.keycode==ALLEGRO_KEY_UP) || (ev->keyboard.keycode==ALLEGRO_KEY_DOWN)) { if (game->fx) al_play_sample(game->map.click_sample, 1.0, 0.0, 1.0, ALLEGRO_PLAYMODE_ONCE, NULL); } else if (ev->keyboard.keycode==ALLEGRO_KEY_ENTER) { + if (game->fx) al_play_sample(game->map.click_sample, 1.0, 0.0, 1.0, ALLEGRO_PLAYMODE_ONCE, NULL); PrintConsole(game, "Selecting level %d...", game->map.selected); UnloadGameState(game); game->gamestate = GAMESTATE_LOADING;