diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-20 05:35:06 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-20 05:35:06 +1000 |
commit | f46d796253fff4fde6db8f399012ef16cbf7707f (patch) | |
tree | cc689d64e820909cfb5a75ec14073caa24fb7d37 /source/game/StarWorldServerThread.cpp | |
parent | 42c8933f554501932b648c7fbb086b75b9d4199c (diff) |
Propagate client admin status to WorldServers
Diffstat (limited to 'source/game/StarWorldServerThread.cpp')
-rw-r--r-- | source/game/StarWorldServerThread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarWorldServerThread.cpp b/source/game/StarWorldServerThread.cpp index 5d126ab..1e1f51a 100644 --- a/source/game/StarWorldServerThread.cpp +++ b/source/game/StarWorldServerThread.cpp @@ -66,10 +66,10 @@ bool WorldServerThread::spawnTargetValid(SpawnTarget const& spawnTarget) { } } -bool WorldServerThread::addClient(ConnectionId clientId, SpawnTarget const& spawnTarget, bool isLocal) { +bool WorldServerThread::addClient(ConnectionId clientId, SpawnTarget const& spawnTarget, bool isLocal, bool isAdmin) { try { RecursiveMutexLocker locker(m_mutex); - if (m_worldServer->addClient(clientId, spawnTarget, isLocal)) { + if (m_worldServer->addClient(clientId, spawnTarget, isLocal, isAdmin)) { m_clients.add(clientId); return true; } |