diff options
author | ultramage <umage@netvor.sk> | 2016-01-14 18:13:23 +0100 |
---|---|---|
committer | ultramage <umage@netvor.sk> | 2016-01-14 18:13:23 +0100 |
commit | 89bc83eb10741057574c9843350711d52b31685a (patch) | |
tree | fe18f0f209052179941672785ae0ce76d1be0b78 | |
parent | 9e48e2aebd5777179bd2fc2f45a58f8ad17b1373 (diff) | |
download | hercules-89bc83eb10741057574c9843350711d52b31685a.tar.gz hercules-89bc83eb10741057574c9843350711d52b31685a.tar.bz2 hercules-89bc83eb10741057574c9843350711d52b31685a.tar.xz hercules-89bc83eb10741057574c9843350711d52b31685a.zip |
Adjusted names in enum guild_permission to still make sense when additional custom permissions are added.
-rw-r--r-- | src/char/int_guild.c | 2 | ||||
-rw-r--r-- | src/common/mmo.h | 3 | ||||
-rw-r--r-- | src/map/guild.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c index 03a1d368d..60efeac94 100644 --- a/src/char/int_guild.c +++ b/src/char/int_guild.c @@ -1201,7 +1201,7 @@ int mapif_parse_CreateGuild(int fd,int account_id,char *name,struct guild_member g->member[0].modified = GS_MEMBER_MODIFIED; // Set default positions - g->position[0].mode = GPERM_BOTH; + g->position[0].mode = GPERM_ALL; strcpy(g->position[0].name,"GuildMaster"); strcpy(g->position[MAX_GUILDPOSITION-1].name,"Newbie"); g->position[0].modified = g->position[MAX_GUILDPOSITION-1].modified = GS_POSITION_MODIFIED; diff --git a/src/common/mmo.h b/src/common/mmo.h index 37fc63e29..6f573a571 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -749,7 +749,8 @@ enum { //Change Member Infos enum guild_permission { // Guild permissions GPERM_INVITE = 0x01, GPERM_EXPEL = 0x10, - GPERM_BOTH = GPERM_INVITE|GPERM_EXPEL, + GPERM_ALL = GPERM_INVITE|GPERM_EXPEL, + GPERM_MASK = GPERM_ALL, }; enum { diff --git a/src/map/guild.c b/src/map/guild.c index cba05638f..f4f0c0528 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -1117,7 +1117,7 @@ int guild_change_position(int guild_id,int idx,int mode,int exp_mode,const char nullpo_ret(name); exp_mode = cap_value(exp_mode, 0, battle_config.guild_exp_limit); - p.mode=mode&GPERM_BOTH; // Invite and Expel + p.mode=mode&GPERM_MASK; p.exp_mode=exp_mode; safestrncpy(p.name,name,NAME_LENGTH); return intif->guild_position(guild_id,idx,&p); |