diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-02 05:02:59 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-02 05:02:59 +0000 |
commit | 74cdd2aabac3b6f74fe84a77301245ffc876db6f (patch) | |
tree | c777052a227e39d7abdc28f9a022b08e77a872b2 /src/map/pc.c | |
parent | 0c9374f1f6f3d82cfa93a3c305ce5328363d0c28 (diff) | |
download | hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.tar.gz hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.tar.bz2 hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.tar.xz hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.zip |
Fixed bugreport:5650 GN Cart Remodeling weight boost should now be working properly.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16042 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 193c1ab4d..16ce1e21d 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4122,7 +4122,7 @@ int pc_cart_additem(struct map_session_data *sd,struct item *item_data,int amoun return 1; } - if( (w = data->weight*amount) + sd->cart_weight > battle_config.max_cart_weight ) + if( (w = data->weight*amount) + sd->cart_weight > sd->cart_weight_max ) return 1; i = MAX_CART; @@ -5724,6 +5724,8 @@ int pc_skillup(struct map_session_data *sd,int skill_num) clif_skillup(sd,skill_num); clif_updatestatus(sd,SP_SKILLPOINT); + if( skill_num == GN_REMODELING_CART ) /* cart weight info was updated by status_calc_pc */ + clif_updatestatus(sd,SP_CARTINFO); if (!pc_has_permission(sd, PC_PERM_ALL_SKILL)) // may skill everything at any time anyways, and this would cause a huge slowdown clif_skillinfoblock(sd); } |