diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-22 00:16:37 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-22 00:16:37 +0000 |
commit | 2bae2bca114fbdc11aa40e27bec5b7c79e93eea8 (patch) | |
tree | fe7f415380ba8fdd223e4595ea5e03a101b3b153 /src/map/clif.c | |
parent | 3a678907dd1447f8fc8b68fcc7a977438f508d48 (diff) | |
download | hercules-2bae2bca114fbdc11aa40e27bec5b7c79e93eea8.tar.gz hercules-2bae2bca114fbdc11aa40e27bec5b7c79e93eea8.tar.bz2 hercules-2bae2bca114fbdc11aa40e27bec5b7c79e93eea8.tar.xz hercules-2bae2bca114fbdc11aa40e27bec5b7c79e93eea8.zip |
* Modified mapserver login procedure to make clients from may 2007 and newer not crash when entering mapserver (bugreport:468)
- this changes PACKETVER to 8, causing incompatibility with old clients
- this makes the "Login" hex obsolete; please stop using it as it causes a conflict with this update and may have negative sideeffects
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11776 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 1c0a0b6ac..0e1d11e35 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -7180,8 +7180,8 @@ int clif_refresh(struct map_session_data *sd) clif_cartlist(sd); clif_updatestatus(sd,SP_CARTINFO); } - clif_updatestatus(sd,SP_MAXWEIGHT); clif_updatestatus(sd,SP_WEIGHT); + clif_updatestatus(sd,SP_MAXWEIGHT); clif_updatestatus(sd,SP_STR); clif_updatestatus(sd,SP_AGI); clif_updatestatus(sd,SP_VIT); @@ -7772,9 +7772,18 @@ void clif_parse_WantToConnection(int fd, TBL_PC* sd) session[fd]->session_data = sd; pc_setnewpc(sd, account_id, char_id, login_id1, client_tick, sex, fd); + +#if PACKETVER < 8 WFIFOHEAD(fd,4); WFIFOL(fd,0) = sd->bl.id; WFIFOSET(fd,4); +#else + WFIFOHEAD(fd,packet_len(0x283)); + WFIFOW(fd,0) = 0x283; + WFIFOL(fd,2) = sd->bl.id; + WFIFOSET(fd,packet_len(0x283)); +#endif + chrif_authreq(sd); return; } @@ -7823,9 +7832,9 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) clif_updatestatus(sd,SP_CARTINFO); } - // weight max, now - clif_updatestatus(sd,SP_MAXWEIGHT); + // weight clif_updatestatus(sd,SP_WEIGHT); + clif_updatestatus(sd,SP_MAXWEIGHT); // guild // (needs to go before clif_spawn() to show guild emblems correctly) @@ -11847,7 +11856,7 @@ static int packetdb_readdb(void) 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //#0x0280 - 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 18, 0, 0, 0, 0, 0, + 0, 0, 0, 6, 0, 0, 0, 0, 0, 8, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,191, 0, 0, 0, 0, 0, 0, |