forked from rosebudai/OpenRCT2-Web
Fix: Restore TrackElement forward declaration and fix kBannerBoundBoxes linkage
TrackPaint.h depends on TrackElement forward declaration from Paint.TileElement.h. Also change kBannerBoundBoxes from constexpr to const for proper external linkage.
This commit is contained in:
1 parent
0eb8db277f
commit
623bdaf12b
2 files changed
+7
-1
No files matched your search
@@ -26,13 +26,14 @@
|
||||
#include "../../world/TileInspector.h"
|
||||
#include "../../world/tile_element/BannerElement.h"
|
||||
#include "Paint.Banner.h"
|
||||
#include "Paint.TileElement.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
// kBannerBoundBoxes[rotation][0] is for the pole in the back
|
||||
// kBannerBoundBoxes[rotation][1] is for the pole and the banner in the front
|
||||
constexpr CoordsXY kBannerBoundBoxes[][2] = {
|
||||
const CoordsXY kBannerBoundBoxes[][2] = {
|
||||
{ { 1, 2 }, { 1, 29 } },
|
||||
{ { 2, 32 }, { 29, 32 } },
|
||||
{ { 32, 2 }, { 32, 29 } },
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
|
||||
#include "../../world/Location.hpp"
|
||||
|
||||
namespace OpenRCT2
|
||||
{
|
||||
struct TrackElement;
|
||||
}
|
||||
|
||||
struct PaintSession;
|
||||
|
||||
enum edge_t
|
||||
|
||||
Reference in new issue
Block a user