mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix #24952: Duplicate track designs when running via Steam without having RCT1 linked
This commit is contained in:
committed by
GitHub
parent
9289f5032c
commit
a7dd47f48b
@@ -3,6 +3,7 @@
|
||||
- Improved: [#25529] The map selection grid no longer redraws every frame if it has not changed.
|
||||
- Improved: [#25530] Wall dragging can now be cancelled without closing the Scenery window.
|
||||
- Change: [#25485] Make the enlarged pressed swatch sprite more pronounced.
|
||||
- Fix: [#24952] Duplicate track designs when running via Steam without having RCT1 linked.
|
||||
- Fix: [#25524] The track construction arrow does not immediately change position when deleting track pieces.
|
||||
- Fix: [#25565] Chairlift station ends are missing tunnels at certain rotations.
|
||||
|
||||
|
||||
@@ -108,6 +108,9 @@ public:
|
||||
{
|
||||
default:
|
||||
case DirBase::rct1:
|
||||
if (basePath.empty())
|
||||
return {};
|
||||
|
||||
directoryName = kDirectoryNamesRCT2[EnumValue(did)];
|
||||
break;
|
||||
case DirBase::rct2:
|
||||
|
||||
@@ -144,6 +144,9 @@ private:
|
||||
std::vector<std::string> files;
|
||||
for (const auto& directory : SearchPaths)
|
||||
{
|
||||
if (directory.empty())
|
||||
continue;
|
||||
|
||||
auto absoluteDirectory = OpenRCT2::Path::GetAbsolute(directory);
|
||||
LOG_VERBOSE("FileIndex:Scanning for %s in '%s'", _pattern.c_str(), absoluteDirectory.c_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user