diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-21 23:45:53 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-21 23:45:53 +0000 |
commit | 72fc9343c79775d3c9df910ce78f5b0ee274cb81 (patch) | |
tree | f0a39b82973db0fd83c29587fda957276e95dcc1 /src/map/clif.c | |
parent | d64c6ba4231c3802ba478c45ebb3b4fda4d8ed83 (diff) | |
download | hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.tar.gz hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.tar.bz2 hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.tar.xz hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.zip |
- Corrected the @follow timer not being deleted on logout.
- Applied the homunculus code fixes provided by Toms.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7820 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 016629098..f78f1ff90 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1471,6 +1471,8 @@ int clif_hominfo(struct map_session_data *sd, int flag) WBUFW(buf,0)=0x22e;
memcpy(WBUFP(buf,2),sd->homunculus.name,NAME_LENGTH);
WBUFB(buf,26)=sd->homunculus.rename_flag * 2;
+ // Bit field, bit 0 : rename_flag (1 = already renamed), bit 1 : homunc vaporized (1 = true), bit 2 : homunc dead (1 = true)
+ WBUFB(buf,26)=sd->homunculus.rename_flag | (sd->homunculus.vaporize << 1) | (sd->homunculus.hp?0:4);
WBUFW(buf,27)=sd->homunculus.level;
WBUFW(buf,29)=sd->homunculus.hunger;
WBUFW(buf,31)=(unsigned short) (hd->master->homunculus.intimacy / 100) ;
@@ -5043,7 +5045,7 @@ int clif_displaymessage(const int fd, char* mes) int len_mes = strlen(mes);
if (len_mes > 0) { // don't send a void message (it's not displaying on the client chat). @help can send void line.
- WFIFOHEAD(fd, 5 + len_mes);
+ WFIFOHEAD(fd, 5 + len_mes);
WFIFOW(fd,0) = 0x8e;
WFIFOW(fd,2) = 5 + len_mes; // 4 + len + NULL teminate
memcpy(WFIFOP(fd,4), mes, len_mes + 1);
|