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/tmwa/beinghandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/tmwa/beinghandler.cpp') diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index 159352cc..e2c4f158 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -396,7 +396,7 @@ void BeingHandler::handleMessage(MessageIn &msg) break; } - if (player_relations.hasPermission(dstBeing, PlayerRelation::EMOTE)) + if (player_relations.hasPermission(dstBeing, PlayerPermissions::EMOTE)) { const int fx = EmoteDB::get(msg.readInt8() - 1).effectId; effectManager->trigger(fx, dstBeing); -- cgit v1.2.3-70-g09d2