From: Ondřej Hošek Date: Tue, 11 Apr 2006 08:25:08 +0000 (+0000) Subject: * Fixed crasher if world doesn't have a world.nut X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f9e110e464b365b27aa785bcdd29306ab169a0a1;p=supertux.git * Fixed crasher if world doesn't have a world.nut * Bonus island worldmaps work again SVN-Revision: 3292 --- diff --git a/data/levels/bonus1/info b/data/levels/bonus1/info index d28b7c55e..1f4e8c835 100644 --- a/data/levels/bonus1/info +++ b/data/levels/bonus1/info @@ -2,4 +2,5 @@ (supertux-level-subset (title (_ "Bonus Island I")) (description "Levels from the Bonus World 1") + (levelset #f) ) diff --git a/data/levels/bonus2/info b/data/levels/bonus2/info index 578f923be..88ecca072 100644 --- a/data/levels/bonus2/info +++ b/data/levels/bonus2/info @@ -2,4 +2,5 @@ (supertux-level-subset (title (_ "Bonus Island II")) (description "Levels from the Bonus World 2") + (levelset #f) ) diff --git a/src/world.cpp b/src/world.cpp index faf5c7b12..71d60cfbd 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -95,6 +95,10 @@ void World::run() { std::string filename = basedir + "/world.nut"; + std::cout << filename << std::endl; + if (!PHYSFS_exists(filename.c_str())) + return; + IFileStream in(filename); HSQUIRRELVM vm = script_manager->create_thread();