mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
parent
e1f6297807
commit
4216776cd6
1 changed files with 5 additions and 5 deletions
|
@ -535,17 +535,17 @@ std::string CleanCheckConditionString(std::string condition) {
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Regions {
|
namespace Regions {
|
||||||
const auto GetAllRegions() {
|
auto GetAllRegions() {
|
||||||
static const size_t regionCount = RR_MAX - (RR_NONE + 1);
|
static const size_t regionCount = RR_MAX - (RR_NONE + 1);
|
||||||
|
|
||||||
static std::array<RandomizerRegion, regionCount> allRegions = {};
|
static std::array<RandomizerRegion, regionCount> allRegions = {};
|
||||||
|
|
||||||
static bool intialized = false;
|
static bool initialized = false;
|
||||||
if (!intialized) {
|
if (!initialized) {
|
||||||
for (size_t i = 0; i < regionCount; i++) {
|
for (size_t i = 0; i < regionCount; i++) {
|
||||||
allRegions[i] = (RandomizerRegion)((RR_NONE + 1) + i);
|
allRegions[i] = (RandomizerRegion)((RR_NONE + 1) + i);
|
||||||
}
|
}
|
||||||
intialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return allRegions;
|
return allRegions;
|
||||||
|
@ -684,7 +684,7 @@ std::vector<Rando::Entrance*> GetShuffleableEntrances(Rando::EntranceType type,
|
||||||
|
|
||||||
Rando::Entrance* GetEntrance(RandomizerRegion source, RandomizerRegion destination) {
|
Rando::Entrance* GetEntrance(RandomizerRegion source, RandomizerRegion destination) {
|
||||||
for (auto& exit : RegionTable(source)->exits) {
|
for (auto& exit : RegionTable(source)->exits) {
|
||||||
if (exit.GetConnectedRegionKey() == destination) {
|
if (exit.GetOriginalConnectedRegionKey() == destination) {
|
||||||
return &exit;
|
return &exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue