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/gui/chatwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/chatwindow.cpp') diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 29bf9c1b..b4b03450 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -406,7 +406,7 @@ void ChatWindow::event(Event::Channel channel, const Event &event) } else if (event.getType() == Event::Being) { - if (event.getInt("permissions") & PlayerRelation::SPEECH_LOG) + if (event.getInt("permissions") & PlayerPermissions::SPEECH_LOG) localChatTab->chatLog(event.getString("message"), BY_OTHER); } } -- cgit v1.2.3-70-g09d2