… | |
… | |
838 | msg = 0; |
838 | msg = 0; |
839 | maplore = 0; |
839 | maplore = 0; |
840 | shoprace = 0; |
840 | shoprace = 0; |
841 | delete [] shopitems, shopitems = 0; |
841 | delete [] shopitems, shopitems = 0; |
842 | |
842 | |
843 | for (int i = 0; i < array_length (tile_path); i++) |
843 | for (int i = 0; i < ecb_array_length (tile_path); i++) |
844 | tile_path [i] = 0; |
844 | tile_path [i] = 0; |
845 | } |
845 | } |
846 | |
846 | |
847 | maptile::~maptile () |
847 | maptile::~maptile () |
848 | { |
848 | { |
… | |
… | |
855 | /* 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 |
856 | * are pointing at this one for tiling information. Since |
856 | * are pointing at this one for tiling information. Since |
857 | * 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 |
858 | * maps this map tiles with and clears those. |
858 | * maps this map tiles with and clears those. |
859 | */ |
859 | */ |
860 | for (int i = 0; i < array_length (tile_path); i++) |
860 | for (int i = 0; i < ecb_array_length (tile_path); i++) |
861 | if (tile_map[i] == m) |
861 | if (tile_map[i] == m) |
862 | tile_map[i] = 0; |
862 | tile_map[i] = 0; |
863 | } |
863 | } |
864 | |
864 | |
865 | void |
865 | void |