summaryrefslogtreecommitdiff
path: root/src/map/pc.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/pc.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/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index de5977bcf..7ed9c5245 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -358,7 +358,8 @@ int pc_setnewpc(struct map_session_data *sd, int account_id, int char_id, int lo
sd->bl.type = BL_PC;
sd->canlog_tick = gettick();
sd->state.waitingdisconnect = 0;
-
+ //Required to prevent homunculus copuing a base speed of 0.
+ sd->battle_status.speed = sd->base_status.speed = DEFAULT_WALK_SPEED;
return 0;
}