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

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldServer.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-07-20 05:35:06 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-07-20 05:35:06 +1000
commitf46d796253fff4fde6db8f399012ef16cbf7707f (patch)
treecc689d64e820909cfb5a75ec14073caa24fb7d37 /source/game/StarWorldServer.hpp
parent42c8933f554501932b648c7fbb086b75b9d4199c (diff)
Propagate client admin status to WorldServers
Diffstat (limited to 'source/game/StarWorldServer.hpp')
-rw-r--r--source/game/StarWorldServer.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/game/StarWorldServer.hpp b/source/game/StarWorldServer.hpp
index 21b9b48..9e319e5 100644
--- a/source/game/StarWorldServer.hpp
+++ b/source/game/StarWorldServer.hpp
@@ -87,7 +87,7 @@ public:
// Returns false if the client id already exists, or the spawn target is
// invalid.
- bool addClient(ConnectionId clientId, SpawnTarget const& spawnTarget, bool isLocal);
+ bool addClient(ConnectionId clientId, SpawnTarget const& spawnTarget, bool isLocal, bool isAdmin = false);
// Removes client, sends the WorldStopPacket, and returns any pending packets
// for that client
@@ -277,6 +277,7 @@ private:
bool pendingForward;
bool started;
bool local;
+ bool admin;
List<PacketPtr> outgoingPackets;