From 8214af442ea63919d69d368221ae2d61456488b9 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Mon, 4 Feb 2008 18:23:57 +0000 Subject: - Some code cleanups. - Added new Cell types (NoChat and NoDamage) - Added JobChangeLevel and FreeSKPoints to #stats - Added a Crash protection in clif_send with invalid fd values. - Merged a missing update in TK Mission. - Added script command 'getmapflag' - Merged some new Status Change to Stable. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12175 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index cda1fccc9..153206101 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -2321,6 +2321,10 @@ int map_getcellp(struct map_data* m,int x,int y,cell_chk cellchk) return (cell.icewall); case CELL_CHKNOVENDING: return (cell.novending); + case CELL_CHKNODAMAGE: + return (cell.nodamage); + case CELL_CHKNOCHAT: + return (cell.nochat); // special checks case CELL_CHKPASS: @@ -2373,6 +2377,8 @@ void map_setcell(int m, int x, int y, cell_t cell, bool flag) 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); break; -- cgit v1.2.3-60-g2f50