mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 07:13:07 +01:00
Fix build due to unused field
This commit is contained in:
@@ -328,7 +328,7 @@ else ()
|
|||||||
# Compiler flags
|
# Compiler flags
|
||||||
set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0–3.")
|
set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0–3.")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter -Wno-attributes")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG=${DEBUG_LEVEL}")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG=${DEBUG_LEVEL}")
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
|||||||
2
distribution/openrct2.d.ts
vendored
2
distribution/openrct2.d.ts
vendored
@@ -1244,7 +1244,7 @@ declare global {
|
|||||||
interface TrackIterator {
|
interface TrackIterator {
|
||||||
/**
|
/**
|
||||||
* The position and direction of the current track segment. Usually this is the position of the
|
* The position and direction of the current track segment. Usually this is the position of the
|
||||||
* element of the segment, however for some segments, it may be offset.
|
* first element of the segment, however for some segments, it may be offset.
|
||||||
*/
|
*/
|
||||||
readonly position: CoordsXYZD;
|
readonly position: CoordsXYZD;
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace OpenRCT2::Scripting
|
|||||||
private:
|
private:
|
||||||
CoordsXYZD _position;
|
CoordsXYZD _position;
|
||||||
track_type_t _type;
|
track_type_t _type;
|
||||||
RideId _ride;
|
[[maybe_unused]] RideId _ride;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static std::shared_ptr<ScTrackIterator> FromElement(const CoordsXY& position, int32_t elementIndex);
|
static std::shared_ptr<ScTrackIterator> FromElement(const CoordsXY& position, int32_t elementIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user