From d2111363fea81d55450430a92e371d3a606e4629 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 13 Feb 2006 04:04:46 +0000 Subject: - Added CELL_CHKSTACK to check if a map cell is stacked (CELL_NOSTACK server mod) - Added flag 0x3000 to path_search to specify that path searching should go through stacked cells. Used for skill_wall_check calls. - easy path_search will be successful in CELL_NOSTACK mode if the search fails only on the target cell (it is presumed the target cell contains the character one is trying to reach). The walk routines will take care of stopping the character from walking into another one when stacked. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5263 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index df3302313..d7cfa11db 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -2160,6 +2160,12 @@ int map_getcellp(struct map_data* m,int x,int y,cell_t cellchk) if (type3 >= battle_config.cell_stack_limit) return 1; #endif return (type==1 || type==5 || type2&(CELL_MOONLIT|CELL_ICEWALL)); + case CELL_CHKSTACK: +#ifdef CELL_NOSTACK + return (type3 >= battle_config.cell_stack_limit); +#else + return 0; +#endif case CELL_CHKWALL: return (type==1/* || type2&CELL_ICEWALL*/); //Uncomment to prevent sniping/casting through the icewall. [Skotlex] case CELL_CHKWATER: -- cgit v1.2.3-70-g09d2