diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-03 11:31:39 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-03 11:37:00 +0200 |
commit | 91242cdfe50922e7258a04743bd940956c0453da (patch) | |
tree | 85e66499c7a12920ec2309142e839abd74bee53b /src/player.cpp | |
parent | 1bc515864c9f317562b3edb0267a3cc4db5737ad (diff) | |
download | mana-91242cdfe50922e7258a04743bd940956c0453da.tar.gz mana-91242cdfe50922e7258a04743bd940956c0453da.tar.bz2 mana-91242cdfe50922e7258a04743bd940956c0453da.tar.xz mana-91242cdfe50922e7258a04743bd940956c0453da.zip |
Moved mIsGM from Being to Player and made isGM() const
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/player.cpp b/src/player.cpp index e1dc3806..d082719a 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -38,9 +38,11 @@ #include "utils/strprintf.h" Player::Player(int id, int job, Map *map): - Being(id, job, map) + Being(id, job, map), + mName(0), + mIsGM(false), + mInParty(false) { - mName = NULL; } Player::~Player() @@ -50,7 +52,7 @@ Player::~Player() void Player::setName(const std::string &name) { - if (mName == NULL) + if (!mName) { if (mIsGM) { |