summaryrefslogtreecommitdiff
path: root/src/map/path.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-03 21:36:40 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-03 21:36:40 +0000
commit1b241817a93f892a24379866a06e046e7e6c5e86 (patch)
tree72e6e27d29b8eca173b32b64d3b31592de7208c6 /src/map/path.c
parent50418d820226fbcdf7609fb619028e3b75a2fa9e (diff)
downloadhercules-1b241817a93f892a24379866a06e046e7e6c5e86.tar.gz
hercules-1b241817a93f892a24379866a06e046e7e6c5e86.tar.bz2
hercules-1b241817a93f892a24379866a06e046e7e6c5e86.tar.xz
hercules-1b241817a93f892a24379866a06e046e7e6c5e86.zip
Map cell mechanism rewrite
- defined a data structure for map cells (replaces 3 various cell arrays) - both terrain (gat) and dynamic (cell) information is now stored as C-style bit flags instead of #defines and bitmasks - added map_gat2cell() and map_cell2gat() for terrain type conversions - changing terrain information via 'setcell' is temporarily disabled - mapserver startup now takes longer, as it needs to adapt mapcache data to internal representation, cell by cell (new mapcache format anyone?) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12003 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/path.c')
-rw-r--r--src/map/path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/path.c b/src/map/path.c
index 440316131..d58adddd0 100644
--- a/src/map/path.c
+++ b/src/map/path.c
@@ -153,7 +153,7 @@ int path_blownpos(int m,int x0,int y0,int dx,int dy,int count)
{
struct map_data *md;
- if( !map[m].gat )
+ if( !map[m].cell )
return -1;
md = &map[m];
@@ -208,7 +208,7 @@ bool path_search_long(struct shootpath_data *spd,int m,int x0,int y0,int x1,int
if( spd == NULL )
spd = &s_spd; // use dummy output variable
- if (!map[m].gat)
+ if (!map[m].cell)
return false;
md = &map[m];
@@ -282,7 +282,7 @@ bool path_search(struct walkpath_data *wpd,int m,int x0,int y0,int x1,int y1,int
if( wpd == NULL )
wpd = &s_wpd; // use dummy output variable
- if( !map[m].gat )
+ if( !map[m].cell )
return false;
md = &map[m];