Fix tileset change not updating border

This commit is contained in:
GriffinR
2023-01-16 20:16:25 -05:00
parent debf9d99f0
commit c233e3cd59
4 changed files with 9 additions and 1 deletions

View File

@@ -76,6 +76,10 @@ bool Map::borderBlockChanged(int i, const Blockdata &cache) {
return layout->border.at(i) != cache.at(i);
}
void Map::clearBorderCache() {
layout->cached_border.clear();
}
void Map::cacheBorder() {
layout->cached_border.clear();
for (const auto &block : layout->border)