forked from rosebudai/OpenRCT2-Web
Rename members of CursorID
This commit is contained in:
17 files changed
+122
-122
No files matched your search
@@ -948,40 +948,40 @@ namespace OpenRCT2::Ui
|
||||
" X ");
|
||||
|
||||
static constexpr const CursorData* kRawCursorData[] = {
|
||||
nullptr, // CursorID::Arrow
|
||||
&kBlankCursorData, // CursorID::Blank
|
||||
&kUpArrowCursorData, // CursorID::UpArrow
|
||||
&kUpDownArrowCursorData, // CursorID::UpDownArrow
|
||||
nullptr, // CursorID::HandPoint
|
||||
&kZzzCursorData, // CursorID::ZZZ
|
||||
&kDiagonalArrowCursorData, // CursorID::DiagonalArrows
|
||||
&kPickerArrowCursorData, // CursorID::Picker
|
||||
&kTreeDownCursorData, // CursorID::TreeDown
|
||||
&kFountainDownCursorData, // CursorID::FountainDown
|
||||
&kStatueDownCursorData, // CursorID::StatueDown
|
||||
&kBenchDownCursorData, // CursorID::BenchDown
|
||||
&kCrossHairCursorData, // CursorID::CrossHair
|
||||
&kBinDownCursorData, // CursorID::BinDown
|
||||
&kLampPostDownCursorData, // CursorID::LamppostDown
|
||||
&kFenceDownCursorData, // CursorID::FenceDown
|
||||
&kFlowerDownCursorData, // CursorID::FlowerDown
|
||||
&kFootpathDownCursorData, // CursorID::PathDown
|
||||
&kDigDownCursorData, // CursorID::DigDown
|
||||
&kWaterDownCursorData, // CursorID::WaterDown
|
||||
&kHouseDownCursorData, // CursorID::HouseDown
|
||||
&kVolcanoDownCursorData, // CursorID::VolcanoDown
|
||||
&kWalkDownCursorData, // CursorID::WalkDown
|
||||
&kPaintDownCursorData, // CursorID::PaintDown
|
||||
&kEntranceDownCursorData, // CursorID::EntranceDown
|
||||
&kHandOpenDownCursorData, // CursorID::HandOpen
|
||||
&kHandClosedDownCursorData, // CursorID::HandClosed
|
||||
&kBulldozerCursorData, // CursorID::Bulldozer
|
||||
nullptr, // CursorID::arrow
|
||||
&kBlankCursorData, // CursorID::blank
|
||||
&kUpArrowCursorData, // CursorID::upArrow
|
||||
&kUpDownArrowCursorData, // CursorID::upDownArrow
|
||||
nullptr, // CursorID::handPoint
|
||||
&kZzzCursorData, // CursorID::zZZ
|
||||
&kDiagonalArrowCursorData, // CursorID::diagonalArrows
|
||||
&kPickerArrowCursorData, // CursorID::picker
|
||||
&kTreeDownCursorData, // CursorID::treeDown
|
||||
&kFountainDownCursorData, // CursorID::fountainDown
|
||||
&kStatueDownCursorData, // CursorID::statueDown
|
||||
&kBenchDownCursorData, // CursorID::benchDown
|
||||
&kCrossHairCursorData, // CursorID::crossHair
|
||||
&kBinDownCursorData, // CursorID::binDown
|
||||
&kLampPostDownCursorData, // CursorID::lamppostDown
|
||||
&kFenceDownCursorData, // CursorID::fenceDown
|
||||
&kFlowerDownCursorData, // CursorID::flowerDown
|
||||
&kFootpathDownCursorData, // CursorID::pathDown
|
||||
&kDigDownCursorData, // CursorID::digDown
|
||||
&kWaterDownCursorData, // CursorID::waterDown
|
||||
&kHouseDownCursorData, // CursorID::houseDown
|
||||
&kVolcanoDownCursorData, // CursorID::volcanoDown
|
||||
&kWalkDownCursorData, // CursorID::walkDown
|
||||
&kPaintDownCursorData, // CursorID::paintDown
|
||||
&kEntranceDownCursorData, // CursorID::entranceDown
|
||||
&kHandOpenDownCursorData, // CursorID::handOpen
|
||||
&kHandClosedDownCursorData, // CursorID::handClosed
|
||||
&kBulldozerCursorData, // CursorID::bulldozer
|
||||
};
|
||||
|
||||
const CursorData* getCursorData(CursorID cursorId)
|
||||
{
|
||||
const CursorData* result = nullptr;
|
||||
if (cursorId != CursorID::Undefined && cursorId != CursorID::Count)
|
||||
if (cursorId != CursorID::undefined && cursorId != CursorID::count)
|
||||
{
|
||||
result = kRawCursorData[EnumValue(cursorId)];
|
||||
}
|
||||
|
||||
@@ -22,14 +22,14 @@ using namespace OpenRCT2::Ui;
|
||||
CursorRepository::~CursorRepository()
|
||||
{
|
||||
_scaledCursors.clear();
|
||||
_currentCursor = CursorID::Undefined;
|
||||
_currentCursor = CursorID::undefined;
|
||||
_currentCursorScale = 1;
|
||||
}
|
||||
|
||||
void CursorRepository::LoadCursors()
|
||||
{
|
||||
SetCursorScale(static_cast<uint8_t>(round(Config::Get().general.windowScale)));
|
||||
SetCurrentCursor(CursorID::Arrow);
|
||||
SetCurrentCursor(CursorID::arrow);
|
||||
}
|
||||
|
||||
CursorID CursorRepository::GetCurrentCursor()
|
||||
@@ -123,9 +123,9 @@ void CursorRepository::GenerateScaledCursorSetHolder(uint8_t scale)
|
||||
switch (cursorId)
|
||||
{
|
||||
// We can't scale the system cursors, but they should be appropriately scaled anyway
|
||||
case CursorID::Arrow:
|
||||
case CursorID::arrow:
|
||||
return SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW);
|
||||
case CursorID::HandPoint:
|
||||
case CursorID::handPoint:
|
||||
return SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND);
|
||||
default:
|
||||
return this->Create(getCursorData(cursorId), scale);
|
||||
|
||||
@@ -27,12 +27,12 @@ namespace OpenRCT2::Ui
|
||||
class CursorSetHolder
|
||||
{
|
||||
private:
|
||||
SDL_Cursor* _cursors[EnumValue(CursorID::Count)] = { nullptr };
|
||||
SDL_Cursor* _cursors[EnumValue(CursorID::count)] = { nullptr };
|
||||
|
||||
public:
|
||||
CursorSetHolder(const std::function<SDL_Cursor*(CursorID)>& getCursor)
|
||||
{
|
||||
for (size_t i = 0; i < EnumValue(CursorID::Count); i++)
|
||||
for (size_t i = 0; i < EnumValue(CursorID::count); i++)
|
||||
{
|
||||
_cursors[i] = getCursor(static_cast<CursorID>(i));
|
||||
}
|
||||
@@ -40,7 +40,7 @@ namespace OpenRCT2::Ui
|
||||
|
||||
~CursorSetHolder()
|
||||
{
|
||||
for (size_t i = 0; i < EnumValue(CursorID::Count); i++)
|
||||
for (size_t i = 0; i < EnumValue(CursorID::count); i++)
|
||||
{
|
||||
SDL_FreeCursor(_cursors[i]);
|
||||
}
|
||||
@@ -55,7 +55,7 @@ namespace OpenRCT2::Ui
|
||||
constexpr static int32_t kBaseCursorWidth = 32;
|
||||
constexpr static int32_t kBaseCursorHeight = 32;
|
||||
|
||||
CursorID _currentCursor = CursorID::Undefined;
|
||||
CursorID _currentCursor = CursorID::undefined;
|
||||
uint8_t _currentCursorScale = 1;
|
||||
|
||||
std::map<uint8_t, CursorSetHolder> _scaledCursors;
|
||||
|
||||
@@ -1144,7 +1144,7 @@ namespace OpenRCT2
|
||||
*/
|
||||
void ProcessMouseOver(const ScreenCoordsXY& screenCoords)
|
||||
{
|
||||
CursorID cursorId = CursorID::Arrow;
|
||||
CursorID cursorId = CursorID::arrow;
|
||||
auto ft = Formatter();
|
||||
ft.Add<StringId>(kStringIdNone);
|
||||
SetMapTooltip(ft);
|
||||
@@ -1164,7 +1164,7 @@ namespace OpenRCT2
|
||||
{
|
||||
if (ViewportInteractionLeftOver(screenCoords))
|
||||
{
|
||||
SetCursor(CursorID::HandPoint);
|
||||
SetCursor(CursorID::handPoint);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
@@ -1183,7 +1183,7 @@ namespace OpenRCT2
|
||||
if (screenCoords.y < window->windowPos.y + window->height - 0x13)
|
||||
break;
|
||||
|
||||
cursorId = CursorID::DiagonalArrows;
|
||||
cursorId = CursorID::diagonalArrows;
|
||||
break;
|
||||
|
||||
case WidgetType::scroll:
|
||||
@@ -1194,19 +1194,19 @@ namespace OpenRCT2
|
||||
*window, &window->widgets[widgetId], screenCoords, scrollCoords, &output_scroll_area, &scroll_id);
|
||||
if (output_scroll_area != SCROLL_PART_VIEW)
|
||||
{
|
||||
cursorId = CursorID::Arrow;
|
||||
cursorId = CursorID::arrow;
|
||||
break;
|
||||
}
|
||||
// Same as default but with scroll_x/y
|
||||
cursorId = window->onCursor(widgetId, scrollCoords, CursorID::Arrow);
|
||||
if (cursorId == CursorID::Undefined)
|
||||
cursorId = CursorID::Arrow;
|
||||
cursorId = window->onCursor(widgetId, scrollCoords, CursorID::arrow);
|
||||
if (cursorId == CursorID::undefined)
|
||||
cursorId = CursorID::arrow;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
cursorId = window->onCursor(widgetId, screenCoords, CursorID::Arrow);
|
||||
if (cursorId == CursorID::Undefined)
|
||||
cursorId = CursorID::Arrow;
|
||||
cursorId = window->onCursor(widgetId, screenCoords, CursorID::arrow);
|
||||
if (cursorId == CursorID::undefined)
|
||||
cursorId = CursorID::arrow;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1546,10 +1546,10 @@ namespace OpenRCT2
|
||||
*/
|
||||
void SetCursor(CursorID cursor_id)
|
||||
{
|
||||
assert(cursor_id != CursorID::Undefined);
|
||||
assert(cursor_id != CursorID::undefined);
|
||||
if (_inputState == InputState::resizing)
|
||||
{
|
||||
cursor_id = CursorID::DiagonalArrows;
|
||||
cursor_id = CursorID::diagonalArrows;
|
||||
}
|
||||
ContextSetCurrentCursor(cursor_id);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace OpenRCT2::Scripting
|
||||
scriptEngine.ExecutePluginCall(Owner, Callback.callback, {}, false);
|
||||
}
|
||||
|
||||
static constexpr std::array<std::string_view, EnumValue(CursorID::Count)> CursorNames = {
|
||||
static constexpr std::array<std::string_view, EnumValue(CursorID::count)> CursorNames = {
|
||||
"arrow", "blank", "up_arrow", "up_down_arrow", "hand_point", "zzz", "diagonal_arrows",
|
||||
"picker", "tree_down", "fountain_down", "statue_down", "bench_down", "cross_hair", "bin_down",
|
||||
"lamppost_down", "fence_down", "flower_down", "path_down", "dig_down", "water_down", "house_down",
|
||||
@@ -86,7 +86,7 @@ namespace OpenRCT2::Scripting
|
||||
if (JS_IsString(value))
|
||||
{
|
||||
std::string valueStr = JSToStdString(ctx, value);
|
||||
for (uint8_t i = 0; i < EnumValue(CursorID::Count); i++)
|
||||
for (uint8_t i = 0; i < EnumValue(CursorID::count); i++)
|
||||
{
|
||||
if (CursorNames[i] == valueStr)
|
||||
{
|
||||
@@ -94,7 +94,7 @@ namespace OpenRCT2::Scripting
|
||||
}
|
||||
}
|
||||
}
|
||||
return CursorID::Arrow;
|
||||
return CursorID::arrow;
|
||||
}
|
||||
|
||||
static const EnumMap<ViewportInteractionItem> ToolFilterMap{
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace OpenRCT2::Scripting
|
||||
{
|
||||
std::shared_ptr<Plugin> Owner;
|
||||
std::string Id;
|
||||
CursorID Cursor = CursorID::Undefined;
|
||||
CursorID Cursor = CursorID::undefined;
|
||||
uint32_t Filter{};
|
||||
bool MouseDown{};
|
||||
|
||||
|
||||
@@ -354,7 +354,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
auto* researchItem = GetItemFromScrollY(isInvented, screenCoords.y);
|
||||
if (researchItem != nullptr && !researchItem->isAlwaysResearched())
|
||||
{
|
||||
return CursorID::HandOpen;
|
||||
return CursorID::handOpen;
|
||||
}
|
||||
return fallback;
|
||||
}
|
||||
@@ -626,7 +626,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
}
|
||||
}
|
||||
|
||||
return CursorID::HandClosed;
|
||||
return CursorID::handClosed;
|
||||
}
|
||||
|
||||
void onMoved(const ScreenCoordsXY& screenCoords) override
|
||||
|
||||
@@ -17,38 +17,38 @@
|
||||
namespace OpenRCT2::Cursor
|
||||
{
|
||||
static const EnumMap<CursorID> LookupTable{
|
||||
{ "CURSOR_BLANK", CursorID::Blank },
|
||||
{ "CURSOR_UP_ARROW", CursorID::UpArrow },
|
||||
{ "CURSOR_UP_DOWN_ARROW", CursorID::UpDownArrow },
|
||||
{ "CURSOR_HAND_POINT", CursorID::HandPoint },
|
||||
{ "CURSOR_ZZZ", CursorID::ZZZ },
|
||||
{ "CURSOR_DIAGONAL_ARROWS", CursorID::DiagonalArrows },
|
||||
{ "CURSOR_PICKER", CursorID::Picker },
|
||||
{ "CURSOR_TREE_DOWN", CursorID::TreeDown },
|
||||
{ "CURSOR_FOUNTAIN_DOWN", CursorID::FountainDown },
|
||||
{ "CURSOR_STATUE_DOWN", CursorID::StatueDown },
|
||||
{ "CURSOR_BENCH_DOWN", CursorID::BenchDown },
|
||||
{ "CURSOR_CROSS_HAIR", CursorID::CrossHair },
|
||||
{ "CURSOR_BIN_DOWN", CursorID::BinDown },
|
||||
{ "CURSOR_LAMPPOST_DOWN", CursorID::LamppostDown },
|
||||
{ "CURSOR_FENCE_DOWN", CursorID::FenceDown },
|
||||
{ "CURSOR_FLOWER_DOWN", CursorID::FlowerDown },
|
||||
{ "CURSOR_PATH_DOWN", CursorID::PathDown },
|
||||
{ "CURSOR_DIG_DOWN", CursorID::DigDown },
|
||||
{ "CURSOR_WATER_DOWN", CursorID::WaterDown },
|
||||
{ "CURSOR_HOUSE_DOWN", CursorID::HouseDown },
|
||||
{ "CURSOR_VOLCANO_DOWN", CursorID::VolcanoDown },
|
||||
{ "CURSOR_WALK_DOWN", CursorID::WalkDown },
|
||||
{ "CURSOR_PAINT_DOWN", CursorID::PaintDown },
|
||||
{ "CURSOR_ENTRANCE_DOWN", CursorID::EntranceDown },
|
||||
{ "CURSOR_HAND_OPEN", CursorID::HandOpen },
|
||||
{ "CURSOR_HAND_CLOSED", CursorID::HandClosed },
|
||||
{ "CURSOR_ARROW", CursorID::Arrow },
|
||||
{ "CURSOR_BLANK", CursorID::blank },
|
||||
{ "CURSOR_UP_ARROW", CursorID::upArrow },
|
||||
{ "CURSOR_UP_DOWN_ARROW", CursorID::upDownArrow },
|
||||
{ "CURSOR_HAND_POINT", CursorID::handPoint },
|
||||
{ "CURSOR_ZZZ", CursorID::zzz },
|
||||
{ "CURSOR_DIAGONAL_ARROWS", CursorID::diagonalArrows },
|
||||
{ "CURSOR_PICKER", CursorID::picker },
|
||||
{ "CURSOR_TREE_DOWN", CursorID::treeDown },
|
||||
{ "CURSOR_FOUNTAIN_DOWN", CursorID::fountainDown },
|
||||
{ "CURSOR_STATUE_DOWN", CursorID::statueDown },
|
||||
{ "CURSOR_BENCH_DOWN", CursorID::benchDown },
|
||||
{ "CURSOR_CROSS_HAIR", CursorID::crossHair },
|
||||
{ "CURSOR_BIN_DOWN", CursorID::binDown },
|
||||
{ "CURSOR_LAMPPOST_DOWN", CursorID::lamppostDown },
|
||||
{ "CURSOR_FENCE_DOWN", CursorID::fenceDown },
|
||||
{ "CURSOR_FLOWER_DOWN", CursorID::flowerDown },
|
||||
{ "CURSOR_PATH_DOWN", CursorID::pathDown },
|
||||
{ "CURSOR_DIG_DOWN", CursorID::digDown },
|
||||
{ "CURSOR_WATER_DOWN", CursorID::waterDown },
|
||||
{ "CURSOR_HOUSE_DOWN", CursorID::houseDown },
|
||||
{ "CURSOR_VOLCANO_DOWN", CursorID::volcanoDown },
|
||||
{ "CURSOR_WALK_DOWN", CursorID::walkDown },
|
||||
{ "CURSOR_PAINT_DOWN", CursorID::paintDown },
|
||||
{ "CURSOR_ENTRANCE_DOWN", CursorID::entranceDown },
|
||||
{ "CURSOR_HAND_OPEN", CursorID::handOpen },
|
||||
{ "CURSOR_HAND_CLOSED", CursorID::handClosed },
|
||||
{ "CURSOR_ARROW", CursorID::arrow },
|
||||
};
|
||||
|
||||
CursorID FromString(const std::string& s, CursorID defaultValue)
|
||||
{
|
||||
assert(defaultValue != CursorID::Undefined);
|
||||
assert(defaultValue != CursorID::undefined);
|
||||
|
||||
auto result = LookupTable.find(s);
|
||||
return (result != LookupTable.end()) ? result->second : defaultValue;
|
||||
|
||||
@@ -14,37 +14,37 @@
|
||||
|
||||
enum class CursorID : uint8_t
|
||||
{
|
||||
Arrow,
|
||||
Blank,
|
||||
UpArrow,
|
||||
UpDownArrow,
|
||||
HandPoint,
|
||||
ZZZ,
|
||||
DiagonalArrows,
|
||||
Picker,
|
||||
TreeDown,
|
||||
FountainDown,
|
||||
StatueDown,
|
||||
BenchDown,
|
||||
CrossHair,
|
||||
BinDown,
|
||||
LamppostDown,
|
||||
FenceDown,
|
||||
FlowerDown,
|
||||
PathDown,
|
||||
DigDown,
|
||||
WaterDown,
|
||||
HouseDown,
|
||||
VolcanoDown,
|
||||
WalkDown,
|
||||
PaintDown,
|
||||
EntranceDown,
|
||||
HandOpen,
|
||||
HandClosed,
|
||||
Bulldozer,
|
||||
Count,
|
||||
arrow,
|
||||
blank,
|
||||
upArrow,
|
||||
upDownArrow,
|
||||
handPoint,
|
||||
zzz,
|
||||
diagonalArrows,
|
||||
picker,
|
||||
treeDown,
|
||||
fountainDown,
|
||||
statueDown,
|
||||
benchDown,
|
||||
crossHair,
|
||||
binDown,
|
||||
lamppostDown,
|
||||
fenceDown,
|
||||
flowerDown,
|
||||
pathDown,
|
||||
digDown,
|
||||
waterDown,
|
||||
houseDown,
|
||||
volcanoDown,
|
||||
walkDown,
|
||||
paintDown,
|
||||
entranceDown,
|
||||
handOpen,
|
||||
handClosed,
|
||||
bulldozer,
|
||||
count,
|
||||
|
||||
Undefined = 0xFF
|
||||
undefined = 0xFF
|
||||
};
|
||||
|
||||
namespace OpenRCT2::Cursor
|
||||
|
||||
@@ -1295,8 +1295,8 @@ namespace OpenRCT2
|
||||
{
|
||||
switch (cursor)
|
||||
{
|
||||
case CursorID::TreeDown:
|
||||
case CursorID::FlowerDown:
|
||||
case CursorID::treeDown:
|
||||
case CursorID::flowerDown:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace OpenRCT2
|
||||
|
||||
CursorID WindowBase::onCursor(WidgetIndex, const ScreenCoordsXY&, CursorID)
|
||||
{
|
||||
return CursorID::Arrow;
|
||||
return CursorID::arrow;
|
||||
}
|
||||
|
||||
static inline void repositionCloseButton(Widget& closeButton, int32_t windowWidth, bool translucent)
|
||||
|
||||
@@ -203,7 +203,7 @@ namespace OpenRCT2
|
||||
|
||||
if (properties.is_object())
|
||||
{
|
||||
_legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::StatueDown);
|
||||
_legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::statueDown);
|
||||
|
||||
_legacyType.price = Json::GetNumber<int16_t>(properties["price"]) * 10;
|
||||
_legacyType.removal_price = Json::GetNumber<int16_t>(properties["removalPrice"]) * 10;
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace OpenRCT2
|
||||
if (properties.is_object())
|
||||
{
|
||||
_legacyType.draw_type = ParseDrawType(Json::GetString(properties["renderAs"]));
|
||||
_legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::LamppostDown);
|
||||
_legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::lamppostDown);
|
||||
_legacyType.price = Json::GetNumber<money64>(properties["price"]);
|
||||
|
||||
SetPrimarySceneryGroup(ObjectEntryDescriptor(Json::GetString(properties["sceneryGroup"])));
|
||||
|
||||
@@ -185,7 +185,7 @@ void SmallSceneryObject::PerformFixes()
|
||||
if (properties.is_object())
|
||||
{
|
||||
_legacyType.height = Json::GetNumber<uint8_t>(properties["height"]);
|
||||
_legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::StatueDown);
|
||||
_legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::statueDown);
|
||||
_legacyType.price = Json::GetNumber<int16_t>(properties["price"]) * 10;
|
||||
_legacyType.removal_price = Json::GetNumber<int16_t>(properties["removalPrice"]) * 10;
|
||||
_legacyType.animation_delay = Json::GetNumber<uint16_t>(properties["animationDelay"]);
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace OpenRCT2
|
||||
|
||||
if (properties.is_object())
|
||||
{
|
||||
_legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::FenceDown);
|
||||
_legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::fenceDown);
|
||||
_legacyType.height = Json::GetNumber<uint8_t>(properties["height"]);
|
||||
_legacyType.price = Json::GetNumber<money64>(properties["price"]);
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace OpenRCT2::Ui
|
||||
}
|
||||
CursorID GetCursor() override
|
||||
{
|
||||
return CursorID::Arrow;
|
||||
return CursorID::arrow;
|
||||
}
|
||||
void SetCursor(CursorID /*cursor*/) override
|
||||
{
|
||||
|
||||
@@ -208,7 +208,7 @@ namespace OpenRCT2
|
||||
|
||||
static void ReorganiseTileElements(GameState_t& gameState, size_t capacity)
|
||||
{
|
||||
ContextSetCurrentCursor(CursorID::ZZZ);
|
||||
ContextSetCurrentCursor(CursorID::zzz);
|
||||
|
||||
std::vector<TileElement> newElements;
|
||||
newElements.reserve(std::max(MIN_TILE_ELEMENTS, capacity));
|
||||
|
||||
Reference in new issue
Block a user