X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsector.cpp;h=cd4276ba784e6a8994683d48e539d971ec93d20a;hb=99cf62c2d44b4555e9761f1c8f1b10cf880c33fb;hp=57418fd83f206d9af7c5c13c8db0f38e16609e12;hpb=bbc091a52439e4942cfa614a6c16b3f530dfab8a;p=supertux.git diff --git a/src/sector.cpp b/src/sector.cpp index 57418fd83..cd4276ba7 100644 --- a/src/sector.cpp +++ b/src/sector.cpp @@ -28,7 +28,8 @@ #include #include #include -#include +//#include +#include #include "sector.hpp" #include "object/player.hpp" @@ -245,7 +246,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 (!PHYSFS_exists(backgroundimage.c_str())) { + if (!Unison::VFS::FileSystem::get().exists(backgroundimage)) { log_warning << "Background image \"" << backgroundimage << "\" not found. Ignoring." << std::endl; backgroundimage = ""; }