From a9dd834853966a4b7421cc643c30ad9996f6b039 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 14 Jan 2008 19:13:16 +0000 Subject: * 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 --- src/map/map.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/map/map.c') 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; -- cgit v1.2.3-60-g2f50