#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"
void
Sector::parse(const lisp::Lisp& sector)
{
+
+ TileMap::loading_worldmap = false;
+
bool has_background = false;
lisp::ListIterator iter(§or);
while(iter.next()) {
void
Sector::parse_old_format(const lisp::Lisp& reader)
{
+
+ TileMap::loading_worldmap = false;
+
name = "main";
reader.get("gravity", gravity);
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 = "";
}