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/clif.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/clif.c')
-rw-r--r-- | src/map/clif.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index ef5a72f..6750845 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4188,7 +4188,8 @@ int clif_skillinfoblock(struct map_session_data *sd) WFIFOW(fd,0)=0x10f; for ( i = c = 0; i < MAX_SKILL; i++){ if( (id=sd->status.skill[i].id)!=0 - && (i < TMW_MAGIC || i > TMW_MAGIC_END)){ // [Fate] Hack: Prevent killing the client + && (sd->tmw_version >= 1 // [Fate] Version 1 and later don't crash because of bad skill IDs anymore + || (i < TMW_MAGIC || i > TMW_MAGIC_END))){ // [Fate] Hack: Prevent killing the client WFIFOW(fd,len ) = id; WFIFOW(fd,len+2) = skill_get_inf(id); WFIFOW(fd,len+4) = 0; |