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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user