Fixed bug to let the player go through messages with no levels on it.
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 27 Jul 2004 22:46:13 +0000 (22:46 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 27 Jul 2004 22:46:13 +0000 (22:46 +0000)
SVN-Revision: 1645

src/worldmap.cpp

index 37c4cd6..5401090 100644 (file)
@@ -261,7 +261,7 @@ Tux::action(float delta)
 
           // We got a new direction, so lets start walking when possible
           Vector next_tile;
-          if ((!special_tile || special_tile->solved)
+          if ((!special_tile || special_tile->solved || special_tile->level_name.empty())
               && worldmap->path_ok(input_direction, tile_pos, &next_tile))
             {
               tile_pos = next_tile;