Add permissions for MODIFY_TILE command

This commit is contained in:
wolfreak99 authored and Michał Janiszewski committed 2017-02-12 23:02:59 +01:00
1 parent bee43fc78d
commit 5bdf2cac75
4 files changed
+12 -1

No files matched your search

+1
View File
@@ -4324,6 +4324,7 @@ STR_6012 :{COMMA1DP16}
STR_6013 :{SMALLFONT}{BLACK}Guests will only pay the ticket to enter the park and services.{NEWLINE}Ride entry is free.
STR_6014 :{SMALLFONT}{BLACK}Guests will only pay entrance tickets for rides and services.{NEWLINE}They won't pay anything to enter the park.
STR_6015 :Sloped
STR_6016 :Modify Tile
#############
# Scenarios #
+1
View File
@@ -3667,6 +3667,7 @@ enum {
STR_RIDE_INCOME_ADMISSION_PAY_FOR_ENTRY_TIP = 6013,
STR_ADMISSION_PRICE_PAY_PER_RIDE_TIP = 6014,
STR_TILE_INSPECTOR_PATH_SLOPED = 6015,
STR_ACTION_MODIFY_TILE = 6016,
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
STR_COUNT = 32768
+6 -1
View File
@@ -221,7 +221,12 @@ const std::vector<NetworkAction> NetworkActions::Actions =
{
MISC_COMMAND_PASSWORDLESS_LOGIN
}
},
}, {
STR_ACTION_MODIFY_TILE, "PERMISSION_MODIFY_TILE",
{
GAME_COMMAND_MODIFY_TILE
}
}
};
#endif
+4
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()