summaryrefslogtreecommitdiff
path: root/src/being/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-06 00:12:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-06 00:12:33 +0300
commit87faf131575091160e9776c511e24b65e8b6b2e9 (patch)
tree99f057c18ff79f1e8064be146c65fca4f50e2616 /src/being/localplayer.h
parent7901ff853659fb9dda0218eac22c740dd44b1bd3 (diff)
downloadmanaplus-87faf131575091160e9776c511e24b65e8b6b2e9.tar.gz
manaplus-87faf131575091160e9776c511e24b65e8b6b2e9.tar.bz2
manaplus-87faf131575091160e9776c511e24b65e8b6b2e9.tar.xz
manaplus-87faf131575091160e9776c511e24b65e8b6b2e9.zip
Disable char rename button if for selected char not allowed rename.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r--src/being/localplayer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index ed2b42b53..bfec5ad58 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -403,6 +403,12 @@ class LocalPlayer final : public Being,
AwayListener *getAwayListener() const A_WARN_UNUSED
{ return mAwayListener; }
+ void setRename(const bool r)
+ { mAllowRename = r; }
+
+ bool getRename() const
+ { return mAllowRename; }
+
protected:
void updateCoords() override final;
@@ -510,6 +516,7 @@ class LocalPlayer final : public Being,
bool mPathSetByMouse;
bool mWaitPing;
bool mShowNavigePath;
+ bool mAllowRename;
};
extern LocalPlayer *localPlayer;