diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-27 14:17:14 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-27 14:17:14 +0000 |
commit | bfdb9f0246ab4f774e612f6cc34524e35a113d88 (patch) | |
tree | 6198262d6f9f8b5ec9dae23732c5cd55fb540a9a /src/map/map.c | |
parent | d1a2dd2086001923ef54f4a2c84b569b6a36da00 (diff) | |
download | hercules-bfdb9f0246ab4f774e612f6cc34524e35a113d88.tar.gz hercules-bfdb9f0246ab4f774e612f6cc34524e35a113d88.tar.bz2 hercules-bfdb9f0246ab4f774e612f6cc34524e35a113d88.tar.xz hercules-bfdb9f0246ab4f774e612f6cc34524e35a113d88.zip |
* Removed NODAMAGE and ICEWALL cell types (mem usage back to normal)
- Icewall now uses basic cell type 5 (nonwalkable, shootable)
- as a consequence, you can now warp to a nonwalkable cell - but only via gm command or scripted warp bug (hopefully :)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12247 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/map/map.c b/src/map/map.c index 32838dfa9..a9ac939bf 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -2272,12 +2272,8 @@ int map_getcellp(struct map_data* m,int x,int y,cell_chk cellchk) return (cell.basilica); case CELL_CHKLANDPROTECTOR: return (cell.landprotector); - case CELL_CHKICEWALL: - return (cell.icewall); case CELL_CHKNOVENDING: return (cell.novending); - case CELL_CHKNODAMAGE: - return (cell.nodamage); case CELL_CHKNOCHAT: return (cell.nochat); @@ -2287,14 +2283,14 @@ int map_getcellp(struct map_data* m,int x,int y,cell_chk cellchk) if (cell.cell_bl >= battle_config.cell_stack_limit) return 0; #endif case CELL_CHKREACH: - return (cell.walkable && !cell.icewall); + return (cell.walkable); case CELL_CHKNOPASS: #ifdef CELL_NOSTACK if (cell.cell_bl >= battle_config.cell_stack_limit) return 1; #endif case CELL_CHKNOREACH: - return (!cell.walkable || cell.icewall); + return (!cell.walkable); case CELL_CHKSTACK: #ifdef CELL_NOSTACK @@ -2328,11 +2324,9 @@ void map_setcell(int m, int x, int y, cell_t cell, bool flag) case CELL_WATER: map[m].cell[j].water = flag; break; case CELL_NPC: map[m].cell[j].npc = flag; break; - case CELL_ICEWALL: map[m].cell[j].icewall = flag; break; case CELL_BASILICA: map[m].cell[j].basilica = flag; break; case CELL_LANDPROTECTOR: map[m].cell[j].landprotector = flag; break; case CELL_NOVENDING: map[m].cell[j].novending = flag; break; - case CELL_NODAMAGE: map[m].cell[j].nodamage = flag; break; case CELL_NOCHAT: map[m].cell[j].nochat = flag; break; default: ShowWarning("map_setcell: invalid cell type '%d'\n", (int)cell); |