From 5723fdae682d71948b2b10161e336d36ea03bdfa Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 29 May 2006 14:10:22 +0000 Subject: - Fixed pc_readparam/pc_setparam to use battle_status.hp/sp rather than status.hp/sp, fixes scripts reading the wrong Hp/Sp values - Added some missing SC_* entries on the initial listing (potion related and speed up ones) - Fixed function declaration of map_getcellp() git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6817 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 3a573f97f..b0e7e8506 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4811,16 +4811,16 @@ int pc_readparam(struct map_session_data *sd,int type) val= pc_nextjobexp(sd); break; case SP_HP: - val= sd->status.hp; + val= sd->battle_status.hp; break; case SP_MAXHP: - val= sd->status.max_hp; + val= sd->battle_status.max_hp; break; case SP_SP: - val= sd->status.sp; + val= sd->battle_status.sp; break; case SP_MAXSP: - val= sd->status.max_sp; + val= sd->battle_status.max_sp; break; case SP_STR: val= sd->status.str; @@ -4952,16 +4952,16 @@ int pc_setparam(struct map_session_data *sd,int type,int val) sd->max_weight = val; break; case SP_HP: - sd->status.hp = val; + sd->battle_status.hp = val; break; case SP_MAXHP: - sd->status.max_hp = val; + sd->battle_status.max_hp = val; break; case SP_SP: - sd->status.sp = val; + sd->battle_status.sp = val; break; case SP_MAXSP: - sd->status.max_sp = val; + sd->battle_status.max_sp = val; break; case SP_STR: sd->status.str = val; -- cgit v1.2.3-70-g09d2