From 6cd8881f1b11c99f8e72735017e743c50094e922 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 29 Oct 2024 16:19:55 +0100 Subject: Turned the PlayerRelation struct into an enum class Less code to achieve the same thing (strong type and namespaced values). The permissions related values have been moved to a PlayerPermissions struct, which is also a bit less confusing. --- src/net/manaserv/chathandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/manaserv/chathandler.cpp') diff --git a/src/net/manaserv/chathandler.cpp b/src/net/manaserv/chathandler.cpp index 11a1331e..dca556c2 100644 --- a/src/net/manaserv/chathandler.cpp +++ b/src/net/manaserv/chathandler.cpp @@ -173,7 +173,7 @@ void ChatHandler::handleGameChatMessage(MessageIn &msg) event.setInt("beingId", id); event.setInt("permissions", player_relations .checkPermissionSilently(being->getName(), - PlayerRelation::SPEECH_LOG | PlayerRelation::SPEECH_FLOAT)); + PlayerPermissions::SPEECH_LOG | PlayerPermissions::SPEECH_FLOAT)); event.trigger(Event::ChatChannel); } -- cgit v1.2.3-70-g09d2