- Likely fixed Homunculus not disappearing the second their intimacy hit 0.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9313 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-11-24 16:04:40 +00:00
parent 75ebff35c4
commit 1c02640811
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/11/24 2006/11/24
* Likely fixed Homunculus not disappearing the second their intimacy hit 0.
[Skotlex]
* Fixed uninitialized variable fd being used in WFIFOHEAD in a few clif * Fixed uninitialized variable fd being used in WFIFOHEAD in a few clif
functions. [Skotlex] functions. [Skotlex]
* Fixed the fact that the TURBO code breaks when you attempt to handle more * Fixed the fact that the TURBO code breaks when you attempt to handle more

View File

@ -114,7 +114,7 @@ int merc_hom_delete(struct homun_data *hd, int emote)
// Send homunculus_dead to client // Send homunculus_dead to client
hd->homunculus.hp = 0; hd->homunculus.hp = 0;
clif_hominfo(sd, hd, 0); clif_hominfo(sd, hd, 0);
return unit_remove_map(&hd->bl,0); return unit_free(&hd->bl,0);
} }
int merc_hom_calc_skilltree(struct homun_data *hd) int merc_hom_calc_skilltree(struct homun_data *hd)
@ -478,7 +478,7 @@ static int merc_hom_hungry(int tid,unsigned int tick,int id,int data)
hd->homunculus.hunger = 0; hd->homunculus.hunger = 0;
// Delete the homunculus if intimacy <= 100 // Delete the homunculus if intimacy <= 100
if ( !merc_hom_decrease_intimacy(hd, 100) ) if ( !merc_hom_decrease_intimacy(hd, 100) )
return merc_hom_delete(sd->hd, 23); //omg return merc_hom_delete(hd, 23); //omg
clif_send_homdata(sd,SP_INTIMATE,hd->homunculus.intimacy / 100); clif_send_homdata(sd,SP_INTIMATE,hd->homunculus.intimacy / 100);
} }