* Fixed a typographic mistake in scripting.xml (closed a bracket)
[supertux.git] / src / level.cpp
index 21ce9eb..b097cc4 100644 (file)
 #include <memory>
 #include <stdexcept>
 
-#include "app/globals.h"
-#include "app/setup.h"
 #include "video/screen.h"
 #include "lisp/parser.h"
 #include "lisp/lisp.h"
 #include "lisp/list_iterator.h"
 #include "lisp/writer.h"
 #include "level.h"
-#include "math/physic.h"
+#include "physic.h"
 #include "sector.h"
 #include "tile.h"
 #include "resources.h"
+#include "file_system.h"
 #include "object/gameobjs.h"
 #include "object/camera.h"
 #include "object/tilemap.h"
@@ -130,7 +129,7 @@ Level::save(const std::string& filename)
   std::string filepath = "levels/" + filename;
   int last_slash = filepath.find_last_of('/');
   FileSystem::fcreatedir(filepath.substr(0,last_slash).c_str());
-  filepath = st_dir + "/" + filepath;
+  filepath = user_dir + "/" + filepath;
   ofstream file(filepath.c_str(), ios::out);
   lisp::Writer* writer = new lisp::Writer(file);