make more things const and refs, and add mutexes
This commit is contained in:
@@ -373,7 +373,7 @@ void Source::update(Map &map,
|
||||
updated = map.getTime();
|
||||
}
|
||||
|
||||
void Source::invalidateTiles(Map& map, std::vector<Tile::ID>& ids) {
|
||||
void Source::invalidateTiles(Map& map, const std::vector<Tile::ID>& ids) {
|
||||
for (auto& id : ids) {
|
||||
tiles.erase(id);
|
||||
tile_data.erase(id);
|
||||
|
||||
Reference in New Issue
Block a user