mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
allow multiple zoneviews (#4263)
This commit is contained in:
parent
1811f7305e
commit
8e1d7d12e0
5 changed files with 38 additions and 32 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue