Fix #9152: Spectators can modify ride colours

This commit is contained in:
ζeh Matt 2019-04-29 20:08:09 +02:00 committed by Michael Steenbeek
parent 53bbe68311
commit c5b66c0294
3 changed files with 4 additions and 2 deletions

View File

@ -25,6 +25,7 @@
- Fix: [#8947] Detection of AVX2 support.
- Fix: [#8988] Character sprite lookup noticeably slows down drawing.
- Fix: [#9000] Show correct error message if not enough money available.
- Fix: [#9152] Spectators can modify ride colours.
- Improved: [#6116] Expose colour scheme for track elements in the tile inspector.
- Improved: Allow the use of numpad enter key for console and chat.

View File

@ -31,7 +31,7 @@
// This string specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "19"
#define NETWORK_STREAM_VERSION "20"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;

View File

@ -13,6 +13,7 @@
#include <array>
#include <string>
#include <vector>
enum MISC_COMMAND
{
@ -55,7 +56,7 @@ class NetworkAction final
public:
rct_string_id Name;
std::string PermissionName;
std::array<int32_t, NETWORK_PERMISSION_COUNT> Commands;
std::vector<int32_t> Commands;
};
class NetworkActions final