mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
[Replay] Fix cards accumulating in zone view when rewinding (#7357)
* [Replay] Fix cards accumulating in zone view when rewinding * rename method
This commit is contained in:
parent
ecd955bc60
commit
ffcb9094ca
6 changed files with 31 additions and 3 deletions
|
|
@ -735,6 +735,16 @@ void GameScene::clearViews()
|
|||
}
|
||||
}
|
||||
|
||||
void GameScene::emptyActiveViews()
|
||||
{
|
||||
for (auto zoneView : zoneViews) {
|
||||
auto logic = qobject_cast<ZoneViewZoneLogic *>(zoneView->getZone()->getLogic());
|
||||
if (!logic->getRevealZone()) {
|
||||
logic->clearCards();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Closes the most recently added zone view.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue