summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-28 11:00:55 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-28 11:00:55 +0000
commit9d4f34b6e4d0b7907f3eba1f7dd6e887ed7e85b3 (patch)
treeb5a0c82ccd2dba68b7b19262732788afbe2239c5 /src/map/pc.c
parent267ca3ca3c0703be39348d3a0ae1dffa1bce4329 (diff)
downloadhercules-9d4f34b6e4d0b7907f3eba1f7dd6e887ed7e85b3.tar.gz
hercules-9d4f34b6e4d0b7907f3eba1f7dd6e887ed7e85b3.tar.bz2
hercules-9d4f34b6e4d0b7907f3eba1f7dd6e887ed7e85b3.tar.xz
hercules-9d4f34b6e4d0b7907f3eba1f7dd6e887ed7e85b3.zip
Fixed stat values displaying incorrectly when increasing them past 255 (wraparound, ack packet only has 1 byte).
Reordered the packets so that a status update for the increased stat is sent immediately after the buggy ack packet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12737 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index c98016418..8f0bb9b63 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4493,13 +4493,13 @@ int pc_statusup(struct map_session_data *sd,int type)
}
sd->status.status_point-=need;
- if(need!=pc_need_status_point(sd,type)){
+ status_calc_pc(sd,0);
+
+ if( need != pc_need_status_point(sd,type) )
clif_updatestatus(sd,type-SP_STR+SP_USTR);
- }
clif_updatestatus(sd,SP_STATUSPOINT);
- clif_updatestatus(sd,type);
- status_calc_pc(sd,0);
clif_statusupack(sd,type,1,val);
+ clif_updatestatus(sd,type); // send after the 'ack' to override the value
return 0;
}