diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-12 22:23:58 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-12 22:23:58 -0600 |
commit | 85ce3c416f6d6060c522ef6b3b5834f27f83cc5b (patch) | |
tree | c26c060c104881a8875e4141b5d42e7546864c7b /src/localplayer.cpp | |
parent | 94716c19748ab87a0a215f05e15ad6cac1008f07 (diff) | |
download | Mana-85ce3c416f6d6060c522ef6b3b5834f27f83cc5b.tar.gz Mana-85ce3c416f6d6060c522ef6b3b5834f27f83cc5b.tar.bz2 Mana-85ce3c416f6d6060c522ef6b3b5834f27f83cc5b.tar.xz Mana-85ce3c416f6d6060c522ef6b3b5834f27f83cc5b.zip |
Fix up handling of GM status
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 059ccd31..24502dd1 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -236,13 +236,9 @@ void LocalPlayer::setAction(Action action, int attackType) Player::setAction(action, attackType); } -void LocalPlayer::setGM() +void LocalPlayer::setGM(bool gm) { - mIsGM = !mIsGM; - mNameColor = mIsGM ? - &guiPalette->getColor(Palette::GM) : - &guiPalette->getColor(Palette::PLAYER); - setName(getName()); + mIsGM = gm; config.setValue(getName() + "GMassert", mIsGM); } |