From: Ricardo Cruz Date: Wed, 28 Jul 2004 10:59:00 +0000 (+0000) Subject: Fixed the not saving bug. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6254318eb0911aea47180e566d9b251debb518dd;p=supertux.git Fixed the not saving bug. It's odd, there was this code in savegame(): if(filename != "") return; ?!?!?!? :O SVN-Revision: 1651 --- diff --git a/src/worldmap.cpp b/src/worldmap.cpp index 747aa7d91..68ad20bf0 100644 --- a/src/worldmap.cpp +++ b/src/worldmap.cpp @@ -704,7 +704,7 @@ WorldMap::update(float delta) { PlayerStatus old_player_status = player_status; - std::cout << "Enter the current special_tile: " << special_tile->level_name << std::endl; + std::cout << "Enter the current level: " << special_tile->level_name << std::endl; // do a shriking fade to the special_tile shrink_fade(Vector((special_tile->x*32 + 16 + offset.x),(special_tile->y*32 + 16 + offset.y)), 500); @@ -1039,7 +1039,7 @@ WorldMap::display() void WorldMap::savegame(const std::string& filename) { - if(filename != "") + if(filename == "") return; std::cout << "savegame: " << filename << std::endl;