diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-08-06 15:43:17 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-08-06 15:43:17 +0000 |
commit | 617884f7f78a6806b70020119130eb1e0090a0c4 (patch) | |
tree | f71995a4c9a2dd41e62e7f7032116bc8c3472119 /src/map/clif.c | |
parent | 854bdc928d3b12514bf133f85af483a4dc44a8cd (diff) | |
download | hercules-617884f7f78a6806b70020119130eb1e0090a0c4.tar.gz hercules-617884f7f78a6806b70020119130eb1e0090a0c4.tar.bz2 hercules-617884f7f78a6806b70020119130eb1e0090a0c4.tar.xz hercules-617884f7f78a6806b70020119130eb1e0090a0c4.zip |
* Added missing fields to guild belong info packet 0x16c (ZC_UPDATE_GDID).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14925 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index e0fb480a9..574bb2c7d 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -6571,27 +6571,30 @@ int clif_guild_created(struct map_session_data *sd,int flag) WFIFOSET(fd,packet_len(0x167)); return 0; } -/*========================================== - * ギルド所属通知 - *------------------------------------------*/ -int clif_guild_belonginfo(struct map_session_data *sd, struct guild *g) + + +/// 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 +void clif_guild_belonginfo(struct map_session_data *sd, struct guild *g) { int ps,fd; - nullpo_ret(sd); - nullpo_ret(g); + nullpo_retv(sd); + nullpo_retv(g); fd=sd->fd; ps=guild_getposition(g,sd); WFIFOHEAD(fd,packet_len(0x16c)); - memset(WFIFOP(fd,0),0,packet_len(0x16c)); WFIFOW(fd,0)=0x16c; WFIFOL(fd,2)=g->guild_id; WFIFOL(fd,6)=g->emblem_id; WFIFOL(fd,10)=g->position[ps].mode; + WFIFOB(fd,14)=(bool)(sd->state.gmaster_flag==g); + WFIFOL(fd,15)=0; // InterSID (unknown purpose) memcpy(WFIFOP(fd,19),g->name,NAME_LENGTH); WFIFOSET(fd,packet_len(0x16c)); - return 0; } + + /*========================================== * ギルドメンバログイン通知 *------------------------------------------*/ |