From: Ricardo Cruz Date: Thu, 21 Oct 2004 17:08:17 +0000 (+0000) Subject: Bugfix: only level 1 title and statistics were being displayed in worldmap. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c0af01d5e9974c6206d7978ab871f6868e903a7e;p=supertux.git Bugfix: only level 1 title and statistics were being displayed in worldmap. SVN-Revision: 2043 --- diff --git a/src/worldmap.cpp b/src/worldmap.cpp index 198bfca61..22372c117 100644 --- a/src/worldmap.cpp +++ b/src/worldmap.cpp @@ -1143,16 +1143,17 @@ WorldMap::draw_status(DrawingContext& context) { if (i->pos == tux->get_tile_pos()) { - if(i->title == "") - get_level_title(*i); + if(i->title == "") + get_level_title(*i); - context.draw_text(white_text, i->title, - Vector(screen->w/2, screen->h - white_text->get_height() - 30), - CENTER_ALLIGN, LAYER_FOREGROUND1); + context.draw_text(white_text, i->title, + Vector(screen->w/2, + screen->h - white_text->get_height() - 30), + CENTER_ALLIGN, LAYER_FOREGROUND1); - i->statistics.draw_worldmap_info(context); - } + i->statistics.draw_worldmap_info(context); break; + } } for(SpecialTiles::iterator i = special_tiles.begin(); i != special_tiles.end(); ++i) { @@ -1161,7 +1162,8 @@ WorldMap::draw_status(DrawingContext& context) /* Display an in-map message in the map, if any as been selected */ if(!i->map_message.empty() && !i->passive_message) context.draw_text(gold_text, i->map_message, - Vector(screen->w/2, screen->h - white_text->get_height() - 60), + Vector(screen->w/2, + screen->h - white_text->get_height() - 60), CENTER_ALLIGN, LAYER_FOREGROUND1); break; }