From 74cdd2aabac3b6f74fe84a77301245ffc876db6f Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 2 May 2012 05:02:59 +0000 Subject: 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 --- src/map/pc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/pc.c') 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); } -- cgit v1.2.3-70-g09d2