summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-09 22:07:45 -0700
committerIra Rice <irarice@gmail.com>2009-01-09 22:07:45 -0700
commit6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef (patch)
tree2c65ef28798489d020d11839d336491cfe81bfcc /src/localplayer.cpp
parentbbc0fb7292460c7d383d16c25aa21bc68c06c27c (diff)
downloadmana-client-6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef.tar.gz
mana-client-6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef.tar.bz2
mana-client-6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef.tar.xz
mana-client-6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef.zip
Added the ability to save GM assert state to the client, as requested.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index fb568d20..c6ce6fc5 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -173,7 +173,8 @@ void LocalPlayer::logic()
void LocalPlayer::setGM()
{
mIsGM = !mIsGM;
- setName(getName());
+ setName(getName());
+ config.setValue(getName() + "GMassert", mIsGM);
}
void LocalPlayer::setName(const std::string &name)