X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMainLayer.cc;h=40377365d18149cf02c7ec8fec0ae4cbd1e4e899;hp=faa462299eb33fdad55aba49a71e85fb00d32c44;hb=b357615aba1dbde81e3c6999366604e6001010a7;hpb=2d77fb5fb3480f522658f30af6addd5146530517 diff --git a/src/MainLayer.cc b/src/MainLayer.cc index faa4622..4037736 100644 --- a/src/MainLayer.cc +++ b/src/MainLayer.cc @@ -77,6 +77,7 @@ void MainLayer::update(Mf::Engine& engine, Mf::Scalar t, Mf::Scalar dt) { // this is the only layer left on the stack //engine.push(TitleLayer::alloc()); + engine.clear(); } } @@ -270,16 +271,14 @@ int main(int argc, char* argv[]) atexit(goodbye); -#if YOINK_LOGLEVEL >= 4 - Mf::setLogLevel(Mf::LOG_DEBUG); -#elif YOINK_LOGLEVEL >= 3 - Mf::setLogLevel(Mf::LOG_INFO); +#if YOINK_LOGLEVEL >= 3 + Mf::Log::setLevel(Mf::Log::INFO); #elif YOINK_LOGLEVEL >= 2 - Mf::setLogLevel(Mf::LOG_SCRIPT); + Mf::Log::setLevel(Mf::Log::WARNING); #elif YOINK_LOGLEVEL >= 1 - Mf::setLogLevel(Mf::LOG_ERROR); + Mf::Log::setLevel(Mf::Log::ERROR); #elif YOINK_LOGLEVEL - Mf::setLogLevel(Mf::LOG_NONE); + Mf::Log::setLevel(Mf::Log::NONE); #endif