summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-29 12:56:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-29 12:56:16 +0300
commit1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f (patch)
tree3eea380919dae735fdbeacff314edf1ad06d26ab /src/being
parent0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5 (diff)
downloadManaVerse-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.cpp9
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;