mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-24 05:37:45 +00:00
Update isActingAsGm so we don't call getOnlineStatus 3 times
This commit is contained in:
parent
af06875e93
commit
c83c59c25d
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ void Core::Entity::Player::setGmInvis( bool invis )
|
|||
|
||||
const bool Core::Entity::Player::isActingAsGm()
|
||||
{
|
||||
return getOnlineStatus() == OnlineStatus::GameMaster || getOnlineStatus() == OnlineStatus::GameMaster1 || getOnlineStatus() == OnlineStatus::GameMaster2;
|
||||
auto status = getOnlineStatus();
|
||||
return status == OnlineStatus::GameMaster || status == OnlineStatus::GameMaster1 || status == OnlineStatus::GameMaster2;
|
||||
}
|
||||
|
||||
uint8_t Core::Entity::Player::getMode() const
|
||||
|
|
Loading…
Add table
Reference in a new issue