Bug fix: When using map-message field and there is a level there, don't draw message...
authorRicardo Cruz <rick2@aeiou.pt>
Wed, 28 Jul 2004 16:07:08 +0000 (16:07 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Wed, 28 Jul 2004 16:07:08 +0000 (16:07 +0000)
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

index 67a2fad..58cfbbc 100644 (file)
@@ -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,