mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
map: don't load background twice
This commit is contained in:
parent
3d2b60b6a6
commit
329e867714
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ void Map_Preload(struct Game *game) {
|
|||
game->map.arrowpos = 0;
|
||||
game->map.map = al_create_bitmap(al_get_display_width(game->display), al_get_display_height(game->display));
|
||||
al_set_new_bitmap_flags(ALLEGRO_MEMORY_BITMAP);
|
||||
game->map.background = al_load_bitmap( "data/table.png" );
|
||||
//game->map.background = al_load_bitmap( "data/table.png" );
|
||||
game->map.map_bg = al_load_bitmap( "data/map/background.png" );
|
||||
char filename[30] = { };
|
||||
sprintf(filename, "data/map/highlight%d.png", game->map.available);
|
||||
|
@ -132,7 +132,7 @@ void Map_Unload(struct Game *game) {
|
|||
al_flip_display();
|
||||
}
|
||||
al_destroy_bitmap(game->map.map);
|
||||
al_destroy_bitmap(game->map.background);
|
||||
//al_destroy_bitmap(game->map.background);
|
||||
al_destroy_bitmap(game->map.map_bg);
|
||||
al_destroy_bitmap(game->map.highlight);
|
||||
al_destroy_bitmap(game->map.arrow);
|
||||
|
|
Loading…
Reference in a new issue