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/skill.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index 31b919fd4..9a7fbada7 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6408,8 +6408,7 @@ struct skill_unit_group* skill_unitsetting (struct block_list *src, short skilli alive = 0; //no path between cell and center of casting. if(alive && skillid == WZ_ICEWALL) { - int celltype = map_getcell(src->m,ux,uy,CELL_GETTYPE); - if(celltype==5 || celltype==1) + if( map_getcell(src->m,ux,uy,CELL_CHKWALL) || map_getcell(src->m,ux,uy,CELL_CHKCLIFF) ) alive=0; else { -- cgit v1.2.3-70-g09d2