summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-12 19:32:30 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-12 21:12:24 +0300
commit03948f9bc58477100c61c11651290bee372dab5f (patch)
tree3714e87d59c3bca2ef02d1f405abba24f8bb9757 /src/being
parentacedb80af76334b0e0acd877d3de0ab8ab46a576 (diff)
downloadmanaplus-03948f9bc58477100c61c11651290bee372dab5f.tar.gz
manaplus-03948f9bc58477100c61c11651290bee372dab5f.tar.bz2
manaplus-03948f9bc58477100c61c11651290bee372dab5f.tar.xz
manaplus-03948f9bc58477100c61c11651290bee372dab5f.zip
Rename gm level into group id in localplayer.cpp
Diffstat (limited to 'src/being')
-rw-r--r--src/being/localplayer.cpp8
-rw-r--r--src/being/localplayer.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index a9b76a10e..a5b5ce5fc 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -117,7 +117,7 @@ LocalPlayer::LocalPlayer(const BeingId id,
AttributeListener(),
PlayerDeathListener(),
StatListener(),
- mGMLevel(0),
+ mGroupId(0),
mMoveState(0),
mLastTargetX(0),
mLastTargetY(0),
@@ -416,11 +416,11 @@ void LocalPlayer::setAction(const BeingActionT &action,
#endif // USE_MUMBLE
}
-void LocalPlayer::setGMLevel(const int level)
+void LocalPlayer::setGroupId(const int id)
{
- mGMLevel = level;
+ mGroupId = id;
- if (level > 0)
+ if (id > 0)
{
setGM(true);
if (chatWindow != nullptr)
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 99cab9b55..7e77f5322 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -114,10 +114,10 @@ class LocalPlayer final : public Being,
void attack2(Being *const target = nullptr, const bool keep = false,
const bool dontChangeEquipment = false);
- void setGMLevel(const int level);
+ void setGroupId(const int id);
- int getGMLevel() const noexcept2 A_WARN_UNUSED
- { return mGMLevel; }
+ int getGroupId() const noexcept2 A_WARN_UNUSED
+ { return mGroupId; }
void stopAttack(const bool keepAttack = false);
@@ -454,7 +454,7 @@ class LocalPlayer final : public Being,
void loadHomes();
- int mGMLevel;
+ int mGroupId;
// move state. used if mMoveType == 2
unsigned int mMoveState;