mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 11:03:54 -07:00
Refactor: rename and consolidate getSpectator (#6067)
This commit is contained in:
parent
03bebbe4c2
commit
46d65f0b7e
4 changed files with 6 additions and 13 deletions
|
|
@ -259,7 +259,7 @@ void CardItem::deleteDragItem()
|
|||
|
||||
void CardItem::drawArrow(const QColor &arrowColor)
|
||||
{
|
||||
if (static_cast<TabGame *>(owner->parent())->getSpectator())
|
||||
if (static_cast<TabGame *>(owner->parent())->isSpectator())
|
||||
return;
|
||||
|
||||
Player *arrowOwner = static_cast<TabGame *>(owner->parent())->getActiveLocalPlayer();
|
||||
|
|
@ -282,7 +282,7 @@ void CardItem::drawArrow(const QColor &arrowColor)
|
|||
|
||||
void CardItem::drawAttachArrow()
|
||||
{
|
||||
if (static_cast<TabGame *>(owner->parent())->getSpectator())
|
||||
if (static_cast<TabGame *>(owner->parent())->isSpectator())
|
||||
return;
|
||||
|
||||
auto *arrow = new ArrowAttachItem(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue