diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-08-13 13:48:30 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-08-13 13:48:30 -0600 |
commit | 1b7508c510aae8906fdcd7309da47c97b2804184 (patch) | |
tree | 9c0342ba083fa520e8dba147487bc851afb4da3a /src/map/pc.c | |
parent | 72eb808de6efd156af1463219572d809caf48978 (diff) | |
download | tmwa-1b7508c510aae8906fdcd7309da47c97b2804184.tar.gz tmwa-1b7508c510aae8906fdcd7309da47c97b2804184.tar.bz2 tmwa-1b7508c510aae8906fdcd7309da47c97b2804184.tar.xz tmwa-1b7508c510aae8906fdcd7309da47c97b2804184.zip |
Change sending of hair style and color
Send them together in overloaded change looks packets (twice for older
clients). This lets newer clients be more flexible with their handling
of hair.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index e0b4c89..1310743 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5763,7 +5763,11 @@ int pc_changelook(struct map_session_data *sd,int type,int val) case LOOK_SHOES: break; } - clif_changelook(&sd->bl,type,val); + + if (type == LOOK_HAIR || type == LOOK_HAIR_COLOR) + clif_changehair(&sd->bl,sd->status.hair,sd->status.hair_color); + else + clif_changelook(&sd->bl,type,val); return 0; } |