From 5e5c83878c8c8ee46dcd12e82e3fce1df05fa4e2 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Wed, 28 Jul 2004 16:07:08 +0000 Subject: [PATCH] Bug fix: When using map-message field and there is a level there, don't draw message flag. For the record, I haven't testes the last two commits to head. I guess I've an excuse this time, since It's not pretty to test stuff when you have to work with data files on /usr/../supertux/ folder. SVN-Revision: 1655 --- src/worldmap.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/worldmap.cpp b/src/worldmap.cpp index 67a2fadf3..58cfbbc01 100644 --- a/src/worldmap.cpp +++ b/src/worldmap.cpp @@ -913,12 +913,14 @@ WorldMap::draw(DrawingContext& context, const Vector& offset) for(SpecialTiles::iterator i = special_tiles.begin(); i != special_tiles.end(); ++i) { - if (!i->display_map_message.empty() && !i->passive_message) - context.draw_surface(messagedot, - Vector(i->x*32 + offset.x, i->y*32 + offset.y), LAYER_TILES+1); - if(i->level_name.empty()) + { + if (!i->display_map_message.empty() && !i->passive_message) + context.draw_surface(messagedot, + Vector(i->x*32 + offset.x, i->y*32 + offset.y), LAYER_TILES+1); + continue; + } if (i->solved) context.draw_surface(leveldot_green, -- 2.11.0