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

Add permissions for MODIFY_TILE command

This commit is contained in:
wolfreak99
2017-02-08 13:05:50 -05:00
committed by Michał Janiszewski
parent bee43fc78d
commit 5bdf2cac75
4 changed files with 12 additions and 1 deletions

View File

@@ -745,6 +745,7 @@ void Network::SetupDefaultGroups()
user->ToggleActionPermission(16); // Modify Groups
user->ToggleActionPermission(17); // Set Player Group
user->ToggleActionPermission(18); // Cheat
user->ToggleActionPermission(21); // Modify Tile
user->Id = 2;
group_list.push_back(std::move(user));
SetDefaultGroup(1);
@@ -786,6 +787,9 @@ void Network::LoadGroups()
}
json_decref(json);
}
// Host group should always contain all permissions.
group_list.at(0)->ActionsAllowed.fill(0xFF);
}
void Network::BeginChatLog()