From 1b241817a93f892a24379866a06e046e7e6c5e86 Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 3 Jan 2008 21:36:40 +0000 Subject: 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 --- src/map/path.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/path.c') 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]; -- cgit v1.2.3-70-g09d2