mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #7111: Path items appear twice in build menu
Issue caused by #7106 - fixed it for banners, but forgot to fix it for path bits as well.
This commit is contained in:
parent
58d325968b
commit
1b2c1a4d83
|
@ -51,7 +51,10 @@ void FootpathItemObject::ReadLegacy(IReadObjectContext * context, IStream * stre
|
|||
const rct_object_entry * objectEntry = object_list_find_by_name(identifier.c_str());
|
||||
static const rct_object_entry scgPathX = Object::GetScgPathXHeader();
|
||||
|
||||
if (objectEntry != nullptr && object_entry_get_source_game(objectEntry) != OBJECT_SOURCE_RCT2)
|
||||
if (objectEntry != nullptr &&
|
||||
(object_entry_get_source_game(objectEntry) == OBJECT_SOURCE_WACKY_WORLDS ||
|
||||
object_entry_get_source_game(objectEntry) == OBJECT_SOURCE_TIME_TWISTER ||
|
||||
object_entry_get_source_game(objectEntry) == OBJECT_SOURCE_CUSTOM))
|
||||
{
|
||||
SetPrimarySceneryGroup(&scgPathX);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue