1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Merge pull request #12858 from ju-pinheiro/network-strong-enums

NETWORK_PERMISSION and NETWORK_AUTH replaced by strong enums
This commit is contained in:
Tulio Leao
2020-09-15 08:07:19 -03:00
committed by GitHub
16 changed files with 129 additions and 122 deletions

View File

@@ -972,7 +972,7 @@ static void window_multiplayer_groups_scrollpaint(rct_window* w, rct_drawpixelin
int32_t groupindex = network_get_group_index(_selectedGroup);
if (groupindex != -1)
{
if (network_can_perform_action(groupindex, i))
if (network_can_perform_action(groupindex, static_cast<NetworkPermission>(i)))
{
char* lineCh = buffer;
lineCh = utf8_write_codepoint(lineCh, FORMAT_WINDOW_COLOUR_2);