diff options
author | Jared Adams <jaxad0127@gmail.com> | 2008-11-02 00:19:12 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2008-11-02 00:19:12 +0000 |
commit | 8d356dbe3f056474700fcbdd563d8ea437b1464e (patch) | |
tree | 682694884b5cae5a9f6ec9136619ac2a90c8f73e /src/map/chrif.c | |
parent | ff4ed0b105b016aa3a7dad07db5fb00456bbe822 (diff) | |
download | tmwa-8d356dbe3f056474700fcbdd563d8ea437b1464e.tar.gz tmwa-8d356dbe3f056474700fcbdd563d8ea437b1464e.tar.bz2 tmwa-8d356dbe3f056474700fcbdd563d8ea437b1464e.tar.xz tmwa-8d356dbe3f056474700fcbdd563d8ea437b1464e.zip |
* Minor cleanup in login server
* Char server now records client version and reports it to map server
* Map server will now report all skills (even ones with dangerous indices) for client version 1 and above
* Use status change val1 (instead of val2) index for speed potions, so that they can be triggered more easily from within scripts
* Item database now also keeps track of the effect that items have on the spower stat
* spower is now based on level + int*2 + modifier (see last point)
* Minor bugfixes in support functionality for the SLang interpreter
- Do not restart the map server without also restarting the char server, as the interserver protocol has changed slightly!
(patch by fate)
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index ceeac26..228d061 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -914,7 +914,7 @@ int chrif_parse(int fd) switch(cmd) { case 0x2af9: chrif_connectack(fd); break; case 0x2afb: chrif_sendmapack(fd); break; - case 0x2afd: pc_authok(RFIFOL(fd,4), RFIFOL(fd,8), (time_t)RFIFOL(fd,12), (struct mmo_charstatus*)RFIFOP(fd,16)); break; + case 0x2afd: pc_authok(RFIFOL(fd,4), RFIFOL(fd,8), (time_t)RFIFOL(fd,12), RFIFOW(fd, 16), (struct mmo_charstatus*)RFIFOP(fd,18)); break; case 0x2afe: pc_authfail(RFIFOL(fd,2)); break; case 0x2b00: map_setusers(RFIFOL(fd,2)); break; case 0x2b03: clif_charselectok(RFIFOL(fd,2)); break; @@ -957,7 +957,9 @@ int send_users_tochar(int tid, unsigned int tick, int id, int data) { WFIFOW(char_fd,0) = 0x2aff; for (i = 0; i < fd_max; i++) { if (session[i] && (sd = session[i]->session_data) && sd->state.auth && - !((battle_config.hide_GM_session || (sd->status.option & OPTION_HIDE)) && pc_isGM(sd))) { + !((battle_config.hide_GM_session + || sd->state.shroud_active + || (sd->status.option & OPTION_HIDE)) && pc_isGM(sd))) { WFIFOL(char_fd,6+4*users) = sd->status.char_id; users++; } |