From 3b9edbd09bca0c54a3231ec818a926399ee8e1df Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 14 Mar 2022 22:03:37 +0000 Subject: [PATCH] Keep old flag values to avoid breaking plugins --- src/openrct2/interface/Viewport.h | 44 ++++++++++++++++--------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/src/openrct2/interface/Viewport.h b/src/openrct2/interface/Viewport.h index afdebef75c..d6c1da140f 100644 --- a/src/openrct2/interface/Viewport.h +++ b/src/openrct2/interface/Viewport.h @@ -27,32 +27,34 @@ struct Guest; struct Staff; struct paint_entry; +// Flags must currenly retain their values to avoid breaking plugins. +// Values can be changed when plugins move to using named constants. enum { - VIEWPORT_FLAG_GRIDLINES = (1 << 0), - VIEWPORT_FLAG_UNDERGROUND_INSIDE = (1 << 1), - VIEWPORT_FLAG_HIDE_BASE = (1 << 2), - VIEWPORT_FLAG_HIDE_VERTICAL = (1 << 3), + VIEWPORT_FLAG_GRIDLINES = (1 << 7), + VIEWPORT_FLAG_UNDERGROUND_INSIDE = (1 << 0), + VIEWPORT_FLAG_HIDE_BASE = (1 << 12), + VIEWPORT_FLAG_HIDE_VERTICAL = (1 << 13), - VIEWPORT_FLAG_SOUND_ON = (1 << 4), - VIEWPORT_FLAG_LAND_OWNERSHIP = (1 << 5), - VIEWPORT_FLAG_CONSTRUCTION_RIGHTS = (1 << 6), - VIEWPORT_FLAG_HIDE_ENTITIES = (1 << 7), - VIEWPORT_FLAG_CLIP_VIEW = (1 << 8), - VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES = (1 << 9), - VIEWPORT_FLAG_TRANSPARENT_BACKGROUND = (1 << 10), + VIEWPORT_FLAG_SOUND_ON = (1 << 10), + VIEWPORT_FLAG_LAND_OWNERSHIP = (1 << 8), + VIEWPORT_FLAG_CONSTRUCTION_RIGHTS = (1 << 9), + VIEWPORT_FLAG_HIDE_ENTITIES = (1 << 14), + VIEWPORT_FLAG_CLIP_VIEW = (1 << 17), + VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES = (1 << 18), + VIEWPORT_FLAG_TRANSPARENT_BACKGROUND = (1 << 19), - VIEWPORT_FLAG_LAND_HEIGHTS = (1 << 12), - VIEWPORT_FLAG_TRACK_HEIGHTS = (1 << 13), - VIEWPORT_FLAG_PATH_HEIGHTS = (1 << 14), + VIEWPORT_FLAG_LAND_HEIGHTS = (1 << 4), + VIEWPORT_FLAG_TRACK_HEIGHTS = (1 << 5), + VIEWPORT_FLAG_PATH_HEIGHTS = (1 << 6), - VIEWPORT_FLAG_HIDE_RIDES = (1 << 16), - VIEWPORT_FLAG_HIDE_VEHICLES = (1 << 17), - VIEWPORT_FLAG_HIDE_TREES = (1 << 18), - VIEWPORT_FLAG_HIDE_SCENERY = (1 << 19), - VIEWPORT_FLAG_HIDE_PATHS = (1 << 20), - VIEWPORT_FLAG_HIDE_SUPPORTS = (1 << 21), - VIEWPORT_FLAG_HIDE_GUESTS = (1 << 22), + VIEWPORT_FLAG_HIDE_RIDES = (1 << 1), + VIEWPORT_FLAG_HIDE_VEHICLES = (1 << 20), + VIEWPORT_FLAG_HIDE_TREES = (1 << 21), + VIEWPORT_FLAG_HIDE_SCENERY = (1 << 2), + VIEWPORT_FLAG_HIDE_PATHS = (1 << 16), + VIEWPORT_FLAG_HIDE_SUPPORTS = (1 << 3), + VIEWPORT_FLAG_HIDE_GUESTS = (1 << 11), VIEWPORT_FLAG_HIDE_STAFF = (1 << 23), VIEWPORT_FLAG_INVISIBLE_RIDES = (1 << 24),