diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 16:01:51 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 16:30:10 +0100 |
commit | 8546361abaa6123acd9dc1429575d1fd1cf6a4ec (patch) | |
tree | c104ef0073dbc93ba491ecb03352402c1a8f72c4 /src/log.cpp | |
parent | c7e48aaf7eb0f2df76327b963879416a0cc8d5e7 (diff) | |
download | mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.tar.gz mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.tar.bz2 mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.tar.xz mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.zip |
Added support for customizing NPC and Monster hover cursor
To match support for this in M+, since TMW uses this functionality on
two of its NPCs.
Diffstat (limited to 'src/log.cpp')
-rw-r--r-- | src/log.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/log.cpp b/src/log.cpp index 47fe5e0f..6921750e 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -29,18 +29,8 @@ #include <cstdarg> #include <cstdio> -Logger::Logger(): - mLogToStandardOut(true) -{ -} - -Logger::~Logger() -{ - if (mLogFile.is_open()) - { - mLogFile.close(); - } -} +Logger::Logger() = default; +Logger::~Logger() = default; void Logger::setLogFile(const std::string &logFilename) { @@ -102,6 +92,6 @@ void Logger::error(const std::string &error_text) { log("Error: %s", error_text.c_str()); std::cerr << "Error: " << error_text << std::endl; - SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", error_text.c_str(), NULL); + SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", error_text.c_str(), nullptr); exit(1); } |