Switched magnification to percentage, added black-border as alternative to scale
[supertux.git] / src / worldmap / level.cpp
index c3ec7e5..2b61124 100644 (file)
 #include <config.h>
 
 #include <stddef.h>
-//#include <physfs.h>
+#include <physfs.h>
 #include "worldmap/level.hpp"
 #include "sprite/sprite_manager.hpp"
 #include "sprite/sprite.hpp"
 #include "video/drawing_context.hpp"
 #include "log.hpp"
 #include "file_system.hpp"
-#include <unison/vfs/FileSystem.hpp>
 
 namespace WorldMapNS
 {
@@ -47,7 +46,7 @@ LevelTile::LevelTile(const std::string& basedir, const lisp::Lisp* lisp)
 
   lisp->get("extro-script", extro_script);
 
-  if (!Unison::VFS::FileSystem::get().exists(basedir + name))
+  if (!PHYSFS_exists((basedir + name).c_str()))
   {
     log_warning << "level file '" << name
       << "' does not exist and will not be added to the worldmap" << std::endl;
@@ -77,7 +76,7 @@ LevelTile::get_picture()
   if (picture_cached) return picture;
   picture_cached = true;
   std::string fname = FileSystem::strip_extension(basedir + name)+".jpg";
-  if (!Unison::VFS::FileSystem::get().exists(fname)) {
+  if (!PHYSFS_exists(fname.c_str())) {
        return 0;
   }
   picture = new Surface(fname);