diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-12 20:30:46 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-12 20:31:24 +0200 |
commit | c6a2f58d221247456946100082a580cce9733917 (patch) | |
tree | 36c3f43d1ea5973537613cf761a3300689c5d31b /src/playerrelations.cpp | |
parent | 057c4592a0260af3efca3f7871abf24d8ed77c5d (diff) | |
download | mana-c6a2f58d221247456946100082a580cce9733917.tar.gz mana-c6a2f58d221247456946100082a580cce9733917.tar.bz2 mana-c6a2f58d221247456946100082a580cce9733917.tar.xz mana-c6a2f58d221247456946100082a580cce9733917.zip |
Some small cleanups and fixed compile with tmwserv support
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r-- | src/playerrelations.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp index a14861ef..316bd9ed 100644 --- a/src/playerrelations.cpp +++ b/src/playerrelations.cpp @@ -203,7 +203,8 @@ bool PlayerRelationsManager::hasPermission(Being *being, unsigned int flags) return true; } -bool PlayerRelationsManager::hasPermission(const std::string &name, unsigned int flags) +bool PlayerRelationsManager::hasPermission(const std::string &name, + unsigned int flags) { unsigned int rejections = flags & ~checkPermissionSilently(name, flags); bool permitted = rejections == 0; @@ -214,8 +215,7 @@ bool PlayerRelationsManager::hasPermission(const std::string &name, unsigned int Player *to_ignore = dynamic_cast<Player *>(beingManager->findBeingByName(name, Being::PLAYER)); if (to_ignore) - mIgnoreStrategy->ignore(to_ignore, - rejections); + mIgnoreStrategy->ignore(to_ignore, rejections); } } @@ -297,8 +297,8 @@ public: } virtual void ignore(Player *player, unsigned int flags) - { - } + { + } }; class PIS_dotdotdot : public PlayerIgnoreStrategy |