summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-14 19:13:16 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-14 19:13:16 +0000
commita9dd834853966a4b7421cc643c30ad9996f6b039 (patch)
tree32983448f8498c02f29733bf3995b6752077c050 /src/map/map.c
parent05bff4bc98f620ae2f037028b72c11caddb6ac3f (diff)
downloadhercules-a9dd834853966a4b7421cc643c30ad9996f6b039.tar.gz
hercules-a9dd834853966a4b7421cc643c30ad9996f6b039.tar.bz2
hercules-a9dd834853966a4b7421cc643c30ad9996f6b039.tar.xz
hercules-a9dd834853966a4b7421cc643c30ad9996f6b039.zip
* Client packet corrections
- 0x01df is not 'gmreqnochatcount', but for requesting a player's account name via right-click menu (which currently can't be done) - added /remove and /recall, aliases to /shift and /summon - added /changemaptype, which alters a single cell's gat type - gm kick will no longer exit the client (now it goes to the login screen) - removed the quicksort invocation in /ignore code git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12076 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 38ed332af..e713b7d4a 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2240,6 +2240,22 @@ void map_setcell(int m, int x, int y, cell_t cell, bool flag)
}
}
+void map_setgatcell(int m, int x, int y, int gat)
+{
+ int j;
+ struct mapcell cell;
+
+ if( m < 0 || m >= map_num || x < 0 || x >= map[m].xs || y < 0 || y >= map[m].ys )
+ return;
+
+ j = x + y*map[m].xs;
+
+ cell = map_gat2cell(gat);
+ map[m].cell[j].walkable = cell.walkable;
+ map[m].cell[j].shootable = cell.shootable;
+ map[m].cell[j].water = cell.water;
+}
+
static void* create_map_data_other_server(DBKey key, va_list args)
{
struct map_data_other_server *mdos;