[Super-tux-commit] supertux/src worldmap.cpp,1.68.2.5,1.68.2.6
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-07-27 22:36:10
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7524/src Modified Files: Tag: supertux_0_1_1_branch worldmap.cpp Log Message: Fixed bug of saving even special tiles that have not levels and when pressing enter on special tiles with no levels. Index: worldmap.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/worldmap.cpp,v retrieving revision 1.68.2.5 retrieving revision 1.68.2.6 diff -u -d -r1.68.2.5 -r1.68.2.6 --- worldmap.cpp 27 Jul 2004 16:36:59 -0000 1.68.2.5 +++ worldmap.cpp 27 Jul 2004 22:36:00 -0000 1.68.2.6 @@ -647,7 +647,7 @@ if (enter_level && !tux->is_moving()) { Level* level = at_level(); - if (level) + if (level && !level->name.empty()) { if (level->x == tux->get_tile_pos().x && level->y == tux->get_tile_pos().y) @@ -951,7 +951,7 @@ for(Levels::iterator i = levels.begin(); i != levels.end(); ++i) { - if (i->solved) + if (i->solved && !i->name.empty()) { out << " (level (name \"" << i->name << "\")\n" << " (solved #t))\n"; |