mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
Fix #15919: Scenery groups are missing in scenario editor
This commit is contained in:
@@ -597,6 +597,12 @@ bool scenery_group_is_invented(int32_t sgIndex)
|
||||
return false;
|
||||
}
|
||||
|
||||
// All scenery is temporarily invented when in the scenario editor
|
||||
if (gScreenFlags & SCREEN_FLAGS_EDITOR)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (gCheatsIgnoreResearchStatus)
|
||||
{
|
||||
return true;
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "../Cheats.h"
|
||||
#include "../Context.h"
|
||||
#include "../Game.h"
|
||||
#include "../OpenRCT2.h"
|
||||
#include "../actions/BannerRemoveAction.h"
|
||||
#include "../actions/FootpathAdditionRemoveAction.h"
|
||||
#include "../actions/LargeSceneryRemoveAction.h"
|
||||
@@ -291,6 +292,12 @@ int32_t wall_entry_get_door_sound(const WallSceneryEntry* wallEntry)
|
||||
|
||||
bool IsSceneryAvailableToBuild(const ScenerySelection& item)
|
||||
{
|
||||
// All scenery can be built when in the scenario editor
|
||||
if (gScreenFlags & SCREEN_FLAGS_EDITOR)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!gCheatsIgnoreResearchStatus)
|
||||
{
|
||||
if (!scenery_is_invented(item))
|
||||
|
||||
Reference in New Issue
Block a user