1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Remove unnecessary game command ids

This commit is contained in:
ζeh Matt
2021-11-11 16:43:39 +02:00
parent 91d6338db5
commit 54af81450e
3 changed files with 5 additions and 15 deletions

View File

@@ -2578,7 +2578,7 @@ void NetworkBase::Server_Handle_AUTH(NetworkConnection& connection, NetworkPacke
if (connection.AuthStatus == NetworkAuth::Verified)
{
const NetworkGroup* group = GetGroupByID(GetGroupIDByHash(connection.Key.PublicKeyHash()));
passwordless = group->CanPerformCommand(GameCommand::PasswordlessLogin);
passwordless = group->CanPerformAction(NetworkPermission::PasswordlessLogin);
}
if (gameversion != network_get_version())
{
@@ -2885,7 +2885,7 @@ void NetworkBase::Server_Handle_CHAT(NetworkConnection& connection, NetworkPacke
if (connection.Player != nullptr)
{
NetworkGroup* group = GetGroupByID(connection.Player->Group);
if (group == nullptr || !group->CanPerformCommand(GameCommand::Chat))
if (group == nullptr || !group->CanPerformAction(NetworkPermission::Chat))
{
return;
}