summaryrefslogtreecommitdiff
path: root/src/char/int_guild.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-11 16:11:20 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-11 16:11:20 +0000
commit26789cc24022cf600543860c4a15dbe79aa0e1f8 (patch)
tree14ad7a134c8ef3957eb2ae6ed45e3352ae20d12c /src/char/int_guild.c
parentc467555b8cdf1599fe3e6eac76065e178a57d72f (diff)
downloadhercules-26789cc24022cf600543860c4a15dbe79aa0e1f8.tar.gz
hercules-26789cc24022cf600543860c4a15dbe79aa0e1f8.tar.bz2
hercules-26789cc24022cf600543860c4a15dbe79aa0e1f8.tar.xz
hercules-26789cc24022cf600543860c4a15dbe79aa0e1f8.zip
- cbasetypes now assumes that Mingwin does defines ssize_t
- Modified the guild master change ack packet to return the aid/cid of the new guild master instead of the index where it was, the previous method could cause problems in situations where the order of guild members would not match exactly between char/map servers. - Updated the Soul Linker's Rogue Spirit Stealth's speed bonus to +60%, according to forum infor from ragnagate. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9985 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/int_guild.c')
-rw-r--r--src/char/int_guild.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index 6886287e2..84c5839d1 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -877,13 +877,14 @@ int mapif_guild_emblem(struct guild *g) {
return 0;
}
-int mapif_guild_master_changed(struct guild *g, int position)
+int mapif_guild_master_changed(struct guild *g, int aid, int cid)
{
unsigned char buf[12];
WBUFW(buf,0)=0x3843;
WBUFL(buf,2)=g->guild_id;
- WBUFL(buf,6)=position;
- mapif_sendall(buf,10);
+ WBUFL(buf,6)=aid;
+ WBUFL(buf,10)=cid;
+ mapif_sendall(buf,14);
return 0;
}
@@ -1517,7 +1518,7 @@ int mapif_parse_GuildMasterChange(int fd, int guild_id, const char* name, int le
g->master[len] = '\0';
ShowInfo("int_guild: Guildmaster Changed to %s (Guild %d - %s)\n",name, guild_id, g->name);
- return mapif_guild_master_changed(g, pos);
+ return mapif_guild_master_changed(g, g->member[0].account_id, g->member[0].char_id);
}
// map server からの通信