summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 14:10:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 14:10:22 +0000
commit5723fdae682d71948b2b10161e336d36ea03bdfa (patch)
treea49f68754a7b3a50cd81751329f5100f2d41e550 /src/map/pc.c
parent0a68e706bac90f56073f3ad2a30c4bada260225c (diff)
downloadhercules-5723fdae682d71948b2b10161e336d36ea03bdfa.tar.gz
hercules-5723fdae682d71948b2b10161e336d36ea03bdfa.tar.bz2
hercules-5723fdae682d71948b2b10161e336d36ea03bdfa.tar.xz
hercules-5723fdae682d71948b2b10161e336d36ea03bdfa.zip
- 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
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c16
1 files changed, 8 insertions, 8 deletions
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;