summaryrefslogtreecommitdiff
path: root/src/guild.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-07-22 13:47:35 +0000
committerDavid Athay <ko2fan@gmail.com>2008-07-22 13:47:35 +0000
commit19a3d8395772b65d0624d2413c2e7e8b845cdb7d (patch)
treece330de2bbbf871a6a8c19763862cc48b4c09741 /src/guild.cpp
parent90b35878719aea081232adbb58fc906a3b3e0f79 (diff)
downloadmana-19a3d8395772b65d0624d2413c2e7e8b845cdb7d.tar.gz
mana-19a3d8395772b65d0624d2413c2e7e8b845cdb7d.tar.bz2
mana-19a3d8395772b65d0624d2413c2e7e8b845cdb7d.tar.xz
mana-19a3d8395772b65d0624d2413c2e7e8b845cdb7d.zip
Add permissions to guild members. Alt-Gr fix for Rotonen from 0.0
Diffstat (limited to 'src/guild.cpp')
-rw-r--r--src/guild.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/guild.cpp b/src/guild.cpp
index 4f28d8b5..c02af865 100644
--- a/src/guild.cpp
+++ b/src/guild.cpp
@@ -23,10 +23,13 @@
#include "guild.h"
-Guild::Guild(short id, bool inviteRights):
+Guild::Guild(short id, short rights):
mId(id),
- mCanInviteUsers(inviteRights)
+ mCanInviteUsers(false)
{
+ // to invite, rights must be greater than 0
+ if (rights > 0)
+ mCanInviteUsers = true;
}
void Guild::addMember(const std::string &name)