1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Close #12421: Refactor NETWORK_AUTH to use strong enum

Replacing enum NETWORK_AUTH with enum class NetworkAuth.
This commit is contained in:
ju-pinheiro
2020-09-04 15:40:12 -03:00
parent 20a8bbc322
commit 214620951f
9 changed files with 56 additions and 56 deletions

View File

@@ -1364,7 +1364,7 @@ static int32_t cc_save_park([[maybe_unused]] InteractiveConsole& console, [[mayb
static int32_t cc_say(InteractiveConsole& console, const arguments_t& argv)
{
if (network_get_mode() == NETWORK_MODE_NONE || network_get_status() != NETWORK_STATUS_CONNECTED
|| network_get_authstatus() != NETWORK_AUTH_OK)
|| network_get_authstatus() != NetworkAuth::Ok)
{
console.WriteFormatLine("This command only works in multiplayer mode.");
return 0;