summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-07-22 16:54:38 -0300
committerpanikon <panikon@zoho.com>2014-07-22 16:55:58 -0300
commitca39e47dc650e60bff54a8d276d8f7126ad1a5df (patch)
treefdd9767d2363652d53ce706ae722ab84ad223284 /src/map/map.h
parent9a36b78fc3d07be4ad4d352df41e5ca5a90aa742 (diff)
downloadhercules-ca39e47dc650e60bff54a8d276d8f7126ad1a5df.tar.gz
hercules-ca39e47dc650e60bff54a8d276d8f7126ad1a5df.tar.bz2
hercules-ca39e47dc650e60bff54a8d276d8f7126ad1a5df.tar.xz
hercules-ca39e47dc650e60bff54a8d276d8f7126ad1a5df.zip
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
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h5
1 files changed, 2 insertions, 3 deletions
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);