X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fworldmap%2Flevel.cpp;h=59984ffad2df8b21ec2a7ddb21df24d0d4cd36cd;hb=7e15c4f871809033278711a6e9327616da00c4c9;hp=c3ec7e544ccbed502cd6b7ab778f8480e642287a;hpb=99cf62c2d44b4555e9761f1c8f1b10cf880c33fb;p=supertux.git diff --git a/src/worldmap/level.cpp b/src/worldmap/level.cpp index c3ec7e544..59984ffad 100644 --- a/src/worldmap/level.cpp +++ b/src/worldmap/level.cpp @@ -20,14 +20,13 @@ #include #include -//#include +#include #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 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,8 +76,8 @@ 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)) { - return 0; + if (!PHYSFS_exists(fname.c_str())) { + return 0; } picture = new Surface(fname); return picture;