diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-22 15:27:04 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-22 15:27:04 +0000 |
commit | 4d1e84d0d9af4fcad025e039544a37a76c91aa1a (patch) | |
tree | 6a321009e67b491bc9bb5fb736b043953d8eee94 /src/map/map.c | |
parent | 8f639ee19e832b9748f4315a9f44a45551e96526 (diff) | |
download | hercules-4d1e84d0d9af4fcad025e039544a37a76c91aa1a.tar.gz hercules-4d1e84d0d9af4fcad025e039544a37a76c91aa1a.tar.bz2 hercules-4d1e84d0d9af4fcad025e039544a37a76c91aa1a.tar.xz hercules-4d1e84d0d9af4fcad025e039544a37a76c91aa1a.zip |
- Added map chk cells types CELL_CHKREACH and CELL_CHKNOREACH, they are the same as their PASS/NOPASS equivalents, but will ignore the cell-stacking mod when enabled.
- Updated path.c with jA's implementation, which should make long path searching more efficient.
- Also added some typedefs from jA for the common structure types (PC/MOB/NPC, etc)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5366 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index d1d557059..bf77e213d 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -2161,11 +2161,13 @@ int map_getcellp(struct map_data* m,int x,int y,cell_t cellchk) #ifdef CELL_NOSTACK
if (type3 >= battle_config.cell_stack_limit) return 0;
#endif
+ case CELL_CHKREACH:
return (type!=1 && type!=5 && !(type2&(CELL_MOONLIT|CELL_ICEWALL)));
case CELL_CHKNOPASS:
#ifdef CELL_NOSTACK
if (type3 >= battle_config.cell_stack_limit) return 1;
#endif
+ case CELL_CHKNOREACH:
return (type==1 || type==5 || type2&(CELL_MOONLIT|CELL_ICEWALL));
case CELL_CHKSTACK:
#ifdef CELL_NOSTACK
|