summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-12 22:23:58 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-12 22:23:58 -0600
commit85ce3c416f6d6060c522ef6b3b5834f27f83cc5b (patch)
treec26c060c104881a8875e4141b5d42e7546864c7b /src/localplayer.cpp
parent94716c19748ab87a0a215f05e15ad6cac1008f07 (diff)
downloadmana-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.cpp8
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);
}