diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-29 12:56:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-29 12:56:16 +0300 |
commit | 1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f (patch) | |
tree | 3eea380919dae735fdbeacff314edf1ad06d26ab /src/being | |
parent | 0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5 (diff) | |
download | manaverse-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.tar.gz manaverse-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.tar.bz2 manaverse-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.tar.xz manaverse-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.zip |
Move many variables from client into settings.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index e24470d1e..6bdf8f166 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -30,6 +30,7 @@ #include "effectmanager.h" #include "guild.h" #include "party.h" +#include "settings.h" #include "soundmanager.h" #include "text.h" @@ -2923,10 +2924,10 @@ std::string Being::loadComment(const std::string &name, const int type) switch (type) { case ActorType::PLAYER: - str = client->getUsersDirectory(); + str = settings.usersDir; break; case ActorType::NPC: - str = client->getNpcsDirectory(); + str = settings.npcsDir; break; default: return ""; @@ -2950,10 +2951,10 @@ void Being::saveComment(const std::string &restrict name, switch (type) { case ActorType::PLAYER: - dir = client->getUsersDirectory(); + dir = settings.usersDir; break; case ActorType::NPC: - dir = client->getNpcsDirectory(); + dir = settings.npcsDir; break; default: return; |