X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FScene.cc;h=2d8f12025d3c8fd119d99d86e58368f03793a876;hp=9510e3670577fff9a7385f343f34a6773a9a9392;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hpb=831f04d4bc19a390415ac0bbac4331c7a65509bc diff --git a/src/Scene.cc b/src/Scene.cc index 9510e36..2d8f120 100644 --- a/src/Scene.cc +++ b/src/Scene.cc @@ -195,7 +195,7 @@ struct Scene::impl : public moof::manager moof::script::status load(moof::settings& settings, moof::script& script) { std::string path(name()); - if (!Scene::find_path(path)) + if (!resource::find(path)) { script.push("the scene file could not be found"); return moof::script::file_error; @@ -574,8 +574,3 @@ bool Scene::checkForCollision(Character& character) } -bool Scene::find_path(std::string& name) -{ - return moof::resource::find_path(name, "scenes/", "lua"); -} -