summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-03-31 17:26:34 -0300
committerpanikon <panikon@zoho.com>2014-03-31 17:26:34 -0300
commita3fecfc4e984f3f734f5f5481f1b756ad3b93caf (patch)
treeee1cb32de0492191fdd5353d7d9c09b247544d60 /src/map/clif.c
parentd9f4084d50057f1103cbdae03dea3b4abddaa209 (diff)
downloadhercules-a3fecfc4e984f3f734f5f5481f1b756ad3b93caf.tar.gz
hercules-a3fecfc4e984f3f734f5f5481f1b756ad3b93caf.tar.bz2
hercules-a3fecfc4e984f3f734f5f5481f1b756ad3b93caf.tar.xz
hercules-a3fecfc4e984f3f734f5f5481f1b756ad3b93caf.zip
Updated documentation for pc_statusup2 and pc_statusup
(fixed issue: 7916 http://hercules.ws/board/tracker/issue-7916-wrong-comment-in-pc-statusup2/) Now pc_statusup2 returns stat increase amount as stated in previous documentation Updated *statusup documentation it was wrong Added last update in upgrade index @console.c/.h Documented partially Now two different parsing categories can have functions with same name e.g. - server exit - sql exit
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index e78c034cb..2dbe7cb96 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11177,7 +11177,15 @@ void clif_parse_ChangeCart(int fd,struct map_session_data *sd)
/// Old clients send always 1 for this, even when using /str+ and the like.
/// Newer clients (2013-12-23 and newer) send the correct amount.
void clif_parse_StatusUp(int fd,struct map_session_data *sd) {
- pc->statusup(sd,RFIFOW(fd,2), RFIFOB(fd, 4));
+ int increase_amount;
+
+ increase_amount = RFIFOB(fd,4);
+ if( increase_amount < 0 )
+ {
+ ShowDebug("clif_parse_StatusUp: Negative 'increase' value sent by client! (fd: %d, value: %d)\n",
+ fd, increase_amount);
+ }
+ pc->statusup(sd, RFIFOW(fd,2), increase_amount);
}