Fixed the not saving bug.
authorRicardo Cruz <rick2@aeiou.pt>
Wed, 28 Jul 2004 10:59:00 +0000 (10:59 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Wed, 28 Jul 2004 10:59:00 +0000 (10:59 +0000)
It's odd, there was this code in savegame():

if(filename != "")
  return;

?!?!?!? :O

SVN-Revision: 1651

src/worldmap.cpp

index 747aa7d..68ad20b 100644 (file)
@@ -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;