From ca39e47dc650e60bff54a8d276d8f7126ad1a5df Mon Sep 17 00:00:00 2001 From: panikon Date: Tue, 22 Jul 2014 16:54:38 -0300 Subject: Fixed some issues with CELL_NOSTACK - Crashing issue when loading maps using map cache (issue: 8270) http://hercules.ws/board/tracker/issue-8270-enable-cell-nostack-crash/ - Counter was not being decrease correctly when leaving a cell Merged map_addblcell and map_delblcell --- src/map/map.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map/map.h') diff --git a/src/map/map.h b/src/map/map.h index 35fe0d7e1..4f7f09131 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -486,7 +486,7 @@ struct mapcell { icewall : 1; #ifdef CELL_NOSTACK - unsigned char cell_bl; //Holds amount of bls in this cell. + int cell_bl; //Holds amount of bls in this cell. #endif }; @@ -1059,8 +1059,7 @@ struct map_interface { void (*helpscreen) (bool do_exit); void (*versionscreen) (bool do_exit); bool (*arg_next_value) (const char *option, int i, int argc, bool must); - void (*addblcell) (struct block_list *bl); - void (*delblcell) (struct block_list *bl); + void (*update_cell_bl) (struct block_list *bl, bool increase); int (*get_new_bonus_id) (void); void (*add_questinfo) (int m, struct questinfo *qi); bool (*remove_questinfo) (int m, struct npc_data *nd); -- cgit v1.2.3-60-g2f50