mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 02:53:25 -08:00
[Refactor] Move the active card from AbstractGame into GameScene
This commit is contained in:
parent
2c80763d99
commit
bb9f38a375
6 changed files with 26 additions and 20 deletions
|
|
@ -98,7 +98,7 @@ QMenu *PlayerMenu::updateCardMenu(CardItem *card)
|
|||
// only update the menu if the card is actually selected
|
||||
if ((player->getLogic()->getGame()->getPlayerManager()->isSpectator() &&
|
||||
!player->getLogic()->getGame()->getPlayerManager()->isJudge()) ||
|
||||
player->getLogic()->getGame()->getActiveCard() != card) {
|
||||
player->getGameScene()->getActiveCard() != card) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue