Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarUniverseClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarUniverseClient.cpp')
-rw-r--r--source/game/StarUniverseClient.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarUniverseClient.cpp b/source/game/StarUniverseClient.cpp
index 2ff4631..4f1dc27 100644
--- a/source/game/StarUniverseClient.cpp
+++ b/source/game/StarUniverseClient.cpp
@@ -394,7 +394,7 @@ CelestialCoordinate UniverseClient::shipCoordinate() const {
}
bool UniverseClient::playerOnOwnShip() const {
- return playerWorld().is<ClientShipWorldId>() && playerWorld().get<ClientShipWorldId>() == mainPlayer()->uuid();
+ return playerWorld().is<ClientShipWorldId>() && playerWorld().get<ClientShipWorldId>() == m_clientContext->playerUuid();
}
bool UniverseClient::playerIsOriginal() const {
@@ -412,7 +412,7 @@ bool UniverseClient::isAdmin() const {
Uuid UniverseClient::teamUuid() const {
if (auto team = m_teamClient->currentTeam())
return *team;
- return m_mainPlayer->uuid();
+ return m_clientContext->playerUuid();
}
WorldTemplateConstPtr UniverseClient::currentTemplate() const {