diff --git a/Engine/Misc/Logger.cpp b/Engine/Misc/Logger.cpp index c64c072..65ade91 100644 --- a/Engine/Misc/Logger.cpp +++ b/Engine/Misc/Logger.cpp @@ -80,7 +80,7 @@ void Logger::PrintCritical(std::string _in, bool writeToFile) { } void Logger::PrintDebug(std::string _in, bool writeToFile) { -#ifdef _DEBUG +#ifdef DEBUG LogConsolePrint(LOG_TYPE_DBG, _in, mLogTimer->GetElapsedTimeS()); if (writeToFile) LogFilePrint(LOG_TYPE_DBG, _in, mLogTimer->GetElapsedTimeS()); diff --git a/ProtoTank.cpp b/ProtoTank.cpp index a0a1c6c..1867211 100644 --- a/ProtoTank.cpp +++ b/ProtoTank.cpp @@ -24,7 +24,11 @@ int main(int argc, char** argv) { } log.PrintInfo(LOGGER_MSG_FT("Create game instance")); +#ifdef DEBUG Game& arcadeGame = Game::getInstance(mainWindow, true); +#else + Game& arcadeGame = Game::getInstance(mainWindow, false); +#endif GAME_STATUS status = GAME_INIT; for ( ;; ) {