mState.script.importStandardLibraries();
importLogFunctions(mState.script);
- std::string loaderPath = Scene::getPath("loader");
- if (loaderPath == "")
+ std::string path("loader");
+ if (!Scene::getPath(path))
{
throw Mf::Error(Mf::Error::RESOURCE_NOT_FOUND, "loader");
}
- Mf::Script::Result status = mState.script.doFile(loaderPath);
+ Mf::Script::Result status = mState.script.doFile(path);
if (status != Mf::Script::SUCCESS)
{
std::string str;
void GameLayer::setProjection(Mf::Scalar width, Mf::Scalar height)
{
- mState.camera.setProjection(cml::rad(45.0), width / height, 1.0, 200.0);
+ mState.camera.setProjection(cml::rad(45.0),
+ width / height,
+ SCALAR(1.0), SCALAR(200.0));
}