allow multiple zoneviews (#4263)

This commit is contained in:
ebbit1q 2021-03-13 20:43:50 +01:00 committed by GitHub
parent 1811f7305e
commit 8e1d7d12e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 32 deletions

View file

@ -1552,8 +1552,10 @@ void Player::eventShuffle(const Event_Shuffle &event)
if (!zone) {
return;
}
if (zone->getView() && zone->getView()->getRevealZone()) {
zone->getView()->setWriteableRevealZone(false);
for (auto *view : zone->getViews()) {
if (view != nullptr) {
view->setWriteableRevealZone(false);
}
}
emit logShuffle(this, zone, event.start(), event.end());
}