summaryrefslogtreecommitdiff
path: root/src/map/skill.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/skill.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/skill.c')
-rw-r--r--src/map/skill.c3
1 files changed, 1 insertions, 2 deletions
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
{