1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
|
|
4 | * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2001-2003 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 2001-2003 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
8 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * Deliantra is free software: you can redistribute it and/or modify it under |
… | |
… | |
837 | msg = 0; |
838 | msg = 0; |
838 | maplore = 0; |
839 | maplore = 0; |
839 | shoprace = 0; |
840 | shoprace = 0; |
840 | delete [] shopitems, shopitems = 0; |
841 | delete [] shopitems, shopitems = 0; |
841 | |
842 | |
842 | for (int i = 0; i < array_length (tile_path); i++) |
843 | for (int i = 0; i < ecb_array_length (tile_path); i++) |
843 | tile_path [i] = 0; |
844 | tile_path [i] = 0; |
844 | } |
845 | } |
845 | |
846 | |
846 | maptile::~maptile () |
847 | maptile::~maptile () |
847 | { |
848 | { |
… | |
… | |
854 | /* We need to look through all the maps and see if any maps |
855 | /* We need to look through all the maps and see if any maps |
855 | * are pointing at this one for tiling information. Since |
856 | * are pointing at this one for tiling information. Since |
856 | * tiling can be asymetric, we just can not look to see which |
857 | * tiling can be asymetric, we just can not look to see which |
857 | * maps this map tiles with and clears those. |
858 | * maps this map tiles with and clears those. |
858 | */ |
859 | */ |
859 | for (int i = 0; i < array_length (tile_path); i++) |
860 | for (int i = 0; i < ecb_array_length (tile_path); i++) |
860 | if (tile_map[i] == m) |
861 | if (tile_map[i] == m) |
861 | tile_map[i] = 0; |
862 | tile_map[i] = 0; |
862 | } |
863 | } |
863 | |
864 | |
864 | void |
865 | void |