diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dyetool/client.cpp | 12 | ||||
-rw-r--r-- | src/dyetool/client.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/dyetool/client.cpp b/src/dyetool/client.cpp index 72e58385e..91a2cbe88 100644 --- a/src/dyetool/client.cpp +++ b/src/dyetool/client.cpp @@ -728,3 +728,15 @@ int Client::testsExec() { return 0; } + +bool Client::isTmw() +{ + const std::string &name = settings.serverName; + if (name == "server.themanaworld.org" + || name == "themanaworld.org" + || name == "167.114.185.71") + { + return true; + } + return false; +} diff --git a/src/dyetool/client.h b/src/dyetool/client.h index 3e1b64691..40a72ef9d 100644 --- a/src/dyetool/client.h +++ b/src/dyetool/client.h @@ -82,6 +82,8 @@ class Client final : public ActionListener void slowLogic(); + bool isTmw(); + private: void stateGame(); |