[Super-tux-commit] supertux/src worldmap.cpp,1.124,1.125
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-10-21 17:08:40
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18210/src Modified Files: worldmap.cpp Log Message: Bugfix: only level 1 title and statistics were being displayed in worldmap. Index: worldmap.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/worldmap.cpp,v retrieving revision 1.124 retrieving revision 1.125 diff -u -d -r1.124 -r1.125 --- worldmap.cpp 6 Oct 2004 21:37:50 -0000 1.124 +++ worldmap.cpp 21 Oct 2004 17:08:17 -0000 1.125 @@ -1143,16 +1143,17 @@ { 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 @@ /* 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; } |