summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-23 18:40:29 +0100
committerHaru <haru@dotalux.com>2015-06-01 10:11:39 +0200
commit42e1df9e61f8efb6340ed1c9238cd247d553d9b8 (patch)
tree2a465b7468b438b200f011fb7994023f4113c33b /src/map/clif.c
parent0a54d25ccfd891814cbdada8589b48c6b9da23fd (diff)
downloadhercules-42e1df9e61f8efb6340ed1c9238cd247d553d9b8.tar.gz
hercules-42e1df9e61f8efb6340ed1c9238cd247d553d9b8.tar.bz2
hercules-42e1df9e61f8efb6340ed1c9238cd247d553d9b8.tar.xz
hercules-42e1df9e61f8efb6340ed1c9238cd247d553d9b8.zip
Replaced some of the hardcoded values with constants (char)
- Replaced several hardcoded values with the appropriate enums. - Added documentation for some hardcoded values that haven't been replaced by enums (yet) - Minor code legibility improvements. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 16bb6172c..7d0d98891 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7071,9 +7071,7 @@ void clif_guild_created(struct map_session_data *sd,int flag)
/// Notifies the client that it is belonging to a guild (ZC_UPDATE_GDID).
/// 016c <guild id>.L <emblem id>.L <mode>.L <ismaster>.B <inter sid>.L <guild name>.24B
-/// mode:
-/// &0x01 = allow invite
-/// &0x10 = allow expel
+/// mode: @see enum guild_permission
void clif_guild_belonginfo(struct map_session_data *sd, struct guild *g)
{
int ps,fd;
@@ -7323,9 +7321,7 @@ void clif_guild_positionnamelist(struct map_session_data *sd) {
/// Guild position information (ZC_POSITION_INFO).
/// 0160 <packet len>.W { <position id>.L <mode>.L <ranking>.L <pay rate>.L }*
-/// mode:
-/// &0x01 = allow invite
-/// &0x10 = allow expel
+/// mode: @see enum guild_permission
/// ranking:
/// TODO
void clif_guild_positioninfolist(struct map_session_data *sd) {
@@ -7353,9 +7349,7 @@ void clif_guild_positioninfolist(struct map_session_data *sd) {
/// Notifies clients in a guild about updated position information (ZC_ACK_CHANGE_GUILD_POSITIONINFO).
/// 0174 <packet len>.W { <position id>.L <mode>.L <ranking>.L <pay rate>.L <position name>.24B }*
-/// mode:
-/// &0x01 = allow invite
-/// &0x10 = allow expel
+/// mode: @see enum guild_permission
/// ranking:
/// TODO
void clif_guild_positionchanged(struct guild *g,int idx)