diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-28 16:26:08 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-28 16:26:08 +0000 |
commit | 19082e5aa65c7c1ba3bc679393132b8e94f2693b (patch) | |
tree | 418a4dbe2a62440d757330a2682e1108d8764be7 /src/map/pc.c | |
parent | 6a9d17e48f65570c8504e862cfeb8fe3822a59c8 (diff) | |
download | hercules-19082e5aa65c7c1ba3bc679393132b8e94f2693b.tar.gz hercules-19082e5aa65c7c1ba3bc679393132b8e94f2693b.tar.bz2 hercules-19082e5aa65c7c1ba3bc679393132b8e94f2693b.tar.xz hercules-19082e5aa65c7c1ba3bc679393132b8e94f2693b.zip |
- Fixed a possible crash due to the recent core.c upgrade.
- Changing setting the Guild Master from pc_authok to clif_parse_LoadEndAck so that it will not fail to set the gmaster flag when the first person of a guild to log on is the guild master.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9347 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 5a41868d2..80ce76857 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -565,7 +565,6 @@ int pc_isequip(struct map_session_data *sd,int n) */ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_time, struct mmo_charstatus *st) { - struct guild *g; int i; unsigned long tick = gettick(); @@ -670,22 +669,10 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t if (sd->status.hom_id > 0) intif_homunculus_requestload(sd->status.account_id, sd->status.hom_id); - // パ?ティ、ギルドデ?タの要求 if (sd->status.party_id > 0 && party_search(sd->status.party_id) == NULL) party_request_info(sd->status.party_id); - if (sd->status.guild_id > 0) - { - if ((g = guild_search(sd->status.guild_id)) == NULL) - guild_request_info(sd->status.guild_id); - else if (strcmp(sd->status.name,g->master) == 0) - { //Block Guild Skills to prevent logout/login reuse exploiting. [Skotlex] - guild_block_skill(sd, 300000); - //Also set the Guild Master flag. - sd->state.gmaster_flag = g; - } - } - - // 通知 + if (sd->status.guild_id > 0 && guild_search(sd->status.guild_id) == NULL) + guild_request_info(sd->status.guild_id); clif_authok(sd); map_addiddb(&sd->bl); |