diff --git a/src/openrct2/paint/Paint.SessionFlags.h b/src/openrct2/paint/Paint.SessionFlags.h new file mode 100644 index 0000000000..7b002d848d --- /dev/null +++ b/src/openrct2/paint/Paint.SessionFlags.h @@ -0,0 +1,18 @@ +/***************************************************************************** + * Copyright (c) 2014-2022 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "../common.h" + +namespace PaintSessionFlags +{ + constexpr uint8_t PassedSurface = 1u << 0; + constexpr uint8_t IsTrackPiecePreview = 1u << 1; +} // namespace PaintSessionFlags diff --git a/src/openrct2/paint/Supports.cpp b/src/openrct2/paint/Supports.cpp index dfce837222..d6f7f2c575 100644 --- a/src/openrct2/paint/Supports.cpp +++ b/src/openrct2/paint/Supports.cpp @@ -15,6 +15,7 @@ #include "../util/Math.hpp" #include "../world/Surface.h" #include "Boundbox.h" +#include "Paint.SessionFlags.h" #include "Paint.h" #include "tile_element/Paint.TileElement.h" diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index 1dfc12d048..d6b5d088aa 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -37,6 +37,7 @@ #include "../../world/Surface.h" #include "../../world/TileInspector.h" #include "../Boundbox.h" +#include "../Paint.SessionFlags.h" #include "../Supports.h" #include "Paint.Surface.h" #include "Paint.TileElement.h" diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index f10ee14664..450558c7a2 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -32,6 +32,7 @@ #include "../../world/Surface.h" #include "../../world/TileInspector.h" #include "../Boundbox.h" +#include "../Paint.SessionFlags.h" #include "Paint.TileElement.h" #include diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.cpp b/src/openrct2/paint/tile_element/Paint.TileElement.cpp index 3001e25f78..62c507cd8a 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.cpp +++ b/src/openrct2/paint/tile_element/Paint.TileElement.cpp @@ -27,6 +27,7 @@ #include "../../world/Map.h" #include "../../world/Scenery.h" #include "../../world/Surface.h" +#include "../Paint.SessionFlags.h" #include "../Paint.h" #include "../Supports.h" #include "../VirtualFloor.h" diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.h b/src/openrct2/paint/tile_element/Paint.TileElement.h index 74be5ecbe0..fafe89b0f5 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.h +++ b/src/openrct2/paint/tile_element/Paint.TileElement.h @@ -71,12 +71,6 @@ enum TUNNEL_TYPE_COUNT }; -namespace PaintSessionFlags -{ - constexpr uint8_t PassedSurface = 1u << 0; - constexpr uint8_t IsTrackPiecePreview = 1u << 1; -} // namespace PaintSessionFlags - extern const int32_t SEGMENTS_ALL; extern const uint16_t segment_offsets[9]; diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index 88730b72dd..9e7f9733c0 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -17,6 +17,7 @@ #include "../interface/Window.h" #include "../localisation/Localisation.h" #include "../object/StationObject.h" +#include "../paint/Paint.SessionFlags.h" #include "../paint/Paint.h" #include "../paint/Supports.h" #include "../paint/tile_element/Paint.TileElement.h" diff --git a/src/openrct2/ride/gentle/MiniGolf.cpp b/src/openrct2/ride/gentle/MiniGolf.cpp index 6c33a06c60..7994112043 100644 --- a/src/openrct2/ride/gentle/MiniGolf.cpp +++ b/src/openrct2/ride/gentle/MiniGolf.cpp @@ -11,6 +11,7 @@ #include "../../entity/EntityRegistry.h" #include "../../entity/Guest.h" #include "../../interface/Viewport.h" +#include "../../paint/Paint.SessionFlags.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" #include "../../world/Map.h"