Refactor: rename and consolidate getSpectator (#6067)

This commit is contained in:
RickyRister 2025-08-15 02:13:53 -03:00 committed by GitHub
parent 03bebbe4c2
commit 46d65f0b7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 13 deletions

View file

@ -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);