1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Remove manual map selection invalidation calls

This commit is contained in:
mix
2025-11-16 00:19:34 +00:00
parent 83591cf94e
commit f3cedcc1d9
22 changed files with 0 additions and 131 deletions

View File

@@ -51,7 +51,6 @@ namespace OpenRCT2::Scripting
void range_set(DukValue value)
{
MapInvalidateSelectionRect();
if (value.type() == DukValue::Type::OBJECT)
{
auto range = GetMapRange(value);
@@ -69,7 +68,6 @@ namespace OpenRCT2::Scripting
{
gMapSelectFlags.unset(MapSelectFlag::enable);
}
MapInvalidateSelectionRect();
}
DukValue tiles_get() const
@@ -94,7 +92,6 @@ namespace OpenRCT2::Scripting
void tiles_set(DukValue value)
{
MapInvalidateMapSelectionTiles();
gMapSelectionTiles.clear();
if (value.is_array())
{
@@ -124,7 +121,6 @@ namespace OpenRCT2::Scripting
{
gMapSelectFlags.set(MapSelectFlag::enableConstruct);
}
MapInvalidateMapSelectionTiles();
}
static void Register(duk_context* ctx)