diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-11 20:43:34 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-11 20:43:34 +0000 |
commit | 9fbe8dc7492c25bd0673d386e31982aa5026fdbc (patch) | |
tree | d2ea3f04c4aee6107d31c452aef33c78df607713 /src/map/clif.c | |
parent | e563484415eb4dd39831a71cc0055b7fe4bceccb (diff) | |
download | hercules-9fbe8dc7492c25bd0673d386e31982aa5026fdbc.tar.gz hercules-9fbe8dc7492c25bd0673d386e31982aa5026fdbc.tar.bz2 hercules-9fbe8dc7492c25bd0673d386e31982aa5026fdbc.tar.xz hercules-9fbe8dc7492c25bd0673d386e31982aa5026fdbc.zip |
- Added various guild packet related missing checks
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9467 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index b2e680b93..9b8bcfdeb 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -10578,6 +10578,7 @@ void clif_parse_GuildCheckMaster(int fd, struct map_session_data *sd) { */ void clif_parse_GuildRequestInfo(int fd, struct map_session_data *sd) { RFIFOHEAD(fd); + if (!sd->status.guild_id) return; switch(RFIFOL(fd,2)){ case 0: // ギルド基本情報、同盟敵対情報 clif_guild_basicinfo(sd); @@ -10612,8 +10613,11 @@ void clif_parse_GuildChangePositionInfo(int fd, struct map_session_data *sd) { int i; RFIFOHEAD(fd); + if(!sd->state.gmaster_flag) + return; + for(i = 4; i < RFIFOW(fd,2); i += 40 ){ - guild_change_position(sd, RFIFOL(fd,i), RFIFOL(fd,i+4), RFIFOL(fd,i+12), (char*)RFIFOP(fd,i+16)); + guild_change_position(sd->status.guild_id, RFIFOL(fd,i), RFIFOL(fd,i+4), RFIFOL(fd,i+12), (char*)RFIFOP(fd,i+16)); } } @@ -10624,6 +10628,9 @@ void clif_parse_GuildChangePositionInfo(int fd, struct map_session_data *sd) { void clif_parse_GuildChangeMemberPosition(int fd, struct map_session_data *sd) { int i; RFIFOHEAD(fd); + + if(!sd->state.gmaster_flag) + return; for(i=4;i<RFIFOW(fd,2);i+=12){ guild_change_memberposition(sd->status.guild_id, @@ -10649,6 +10656,10 @@ void clif_parse_GuildRequestEmblem(int fd,struct map_session_data *sd) { */ void clif_parse_GuildChangeEmblem(int fd,struct map_session_data *sd) { RFIFOHEAD(fd); + + if(!sd->state.gmaster_flag) + return; + guild_change_emblem(sd,RFIFOW(fd,2)-4,(char*)RFIFOP(fd,4)); } @@ -10658,6 +10669,10 @@ void clif_parse_GuildChangeEmblem(int fd,struct map_session_data *sd) { */ void clif_parse_GuildChangeNotice(int fd,struct map_session_data *sd) { RFIFOHEAD(fd); + + if(!sd->state.gmaster_flag) + return; + guild_change_notice(sd,RFIFOL(fd,2),(char*)RFIFOP(fd,6),(char*)RFIFOP(fd,66)); } |