forked from rosebudai/OpenRCT2-Web
remove all unnecessary object resets
This commit is contained in:
1 parent
4664b73488
commit
78c6b6a251
10 files changed
+23
-33
No files matched your search
@@ -180,6 +180,22 @@ public:
|
||||
reset_type_to_ride_entry_index_map();
|
||||
}
|
||||
|
||||
void ResetObjects() override
|
||||
{
|
||||
if (_loadedObjects != nullptr)
|
||||
{
|
||||
for (size_t i = 0; i < OBJECT_ENTRY_COUNT; i++)
|
||||
{
|
||||
Object * loadedObject = _loadedObjects[i];
|
||||
if (loadedObject != nullptr)
|
||||
{
|
||||
loadedObject->Unload();
|
||||
loadedObject->Load();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
sint32 FindSpareSlot(uint8 objectType)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user