summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-07 18:58:33 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-07 18:58:33 +0000
commitdff76e1a9840fe00a6c738d89de5d1074eae858a (patch)
tree33d2843fa4495142449e5a3175db6a1b48123bcd /src/map/status.c
parent4f713a631bcb5df4ee4afc8667b51c2893ce693b (diff)
downloadhercules-dff76e1a9840fe00a6c738d89de5d1074eae858a.tar.gz
hercules-dff76e1a9840fe00a6c738d89de5d1074eae858a.tar.bz2
hercules-dff76e1a9840fe00a6c738d89de5d1074eae858a.tar.xz
hercules-dff76e1a9840fe00a6c738d89de5d1074eae858a.zip
- Corrected the pet/homunc data not being free'd if the player logs out before being authed.
- Initialized player's speed on pc_setnewpc to prevent homunculus copying a speed of 0. - Added comment to reloadbattleconf specifying that some settings do not take effect inmediately. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9975 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 924a97407..660241cd3 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2370,8 +2370,7 @@ int status_calc_homunculus(struct homun_data *hd, int first)
status->rhw.range = 1 + status->size;
status->mode = MD_CANMOVE|MD_CANATTACK;
status->speed = DEFAULT_WALK_SPEED;
- if (battle_config.hom_setting&0x8 &&
- hd->master && hd->master->state.auth) //Master needs be authed to have valid speed.
+ if (battle_config.hom_setting&0x8 && hd->master)
status->speed = status_get_speed(&hd->master->bl);
status->hp = 1;