Reset play_time when level is restarted
[supertux.git] / src / sector.cpp
index cd4276b..57418fd 100644 (file)
@@ -28,8 +28,7 @@
 #include <float.h>
 #include <math.h>
 #include <limits>
-//#include <physfs.h>
-#include <unison/vfs/FileSystem.hpp>
+#include <physfs.h>
 
 #include "sector.hpp"
 #include "object/player.hpp"
@@ -246,7 +245,7 @@ Sector::parse_old_format(const lisp::Lisp& reader)
     if (backgroundimage == "arctis2.jpg") backgroundimage = "arctis.jpg";
     if (backgroundimage == "ocean.png") backgroundimage = "ocean.jpg";
     backgroundimage = "images/background/" + backgroundimage;
-    if (!Unison::VFS::FileSystem::get().exists(backgroundimage)) {
+    if (!PHYSFS_exists(backgroundimage.c_str())) {
       log_warning << "Background image \"" << backgroundimage << "\" not found. Ignoring." << std::endl;
       backgroundimage = "";
     }