Modified map server msg limit to accommodate new @costume messages.

Added additional removal checks when taking off costumes. Fixes bugreport:8862.
p.s. special thanks to aleos for pointing me in the right direction!
This commit is contained in:
Akkarinage
2014-04-04 14:46:29 +01:00
parent 810f79e781
commit 8a723ee496
2 changed files with 10 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ static int block_free_count = 0, block_free_lock = 0;
static struct block_list *bl_list[BL_LIST_MAX];
static int bl_list_count = 0;
#define MAP_MAX_MSG 1500
#define MAP_MAX_MSG 1600
struct map_data map[MAX_MAP_PER_SERVER];
int map_num = 0;

View File

@@ -10996,9 +10996,16 @@ int status_change_end_(struct block_list* bl, enum sc_type type, int tid, const
if( opt_flag&8 ) // bugreport:681
clif_changeoption2(bl);
else if(opt_flag)
else if(opt_flag) {
clif_changeoption(bl);
if (sd && (opt_flag&0x4)) {
clif_changelook(bl,LOOK_BASE,sd->vd.class_);
clif_get_weapon_view(sd,&sd->vd.weapon,&sd->vd.shield);
clif_changelook(bl,LOOK_WEAPON,sd->vd.weapon);
clif_changelook(bl,LOOK_SHIELD,sd->vd.shield);
clif_changelook(bl,LOOK_CLOTHES_COLOR,cap_value(sd->status.clothes_color,0,battle_config.max_cloth_color));
}
}
if (calc_flag)
status_calc_bl(bl,calc_flag);