Skip to content

Commit 09cbe57

Browse files
committed
Clean up, i made this harder than it needed to be...
1 parent 8d7814b commit 09cbe57

1 file changed

Lines changed: 1 addition & 25 deletions

File tree

src/port/Rando/MiscBehavior/MiscBehavior.cpp

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,7 @@ void Rando::MiscBehavior::Init() {
4444
return;
4545
}
4646

47-
// Skip inter-level area changes.
48-
if (gCurrLevelNum == ev->warpNode->destLevel) {
49-
return;
50-
}
51-
52-
if (gCurrLevelNum == Rando::StaticData::Entrances[shuffledEntrance].destinationId) {
53-
if (ev->sourceWarpNode != 241) {
54-
return;
55-
}
56-
}
57-
58-
// Skip Bowser Arena entrances for now, plan on adding these in later.
59-
if (ev->warpNode->destLevel == LEVEL_BOWSER_1 || ev->warpNode->destLevel == LEVEL_BOWSER_2 ||
60-
ev->warpNode->destLevel == LEVEL_BOWSER_3) {
61-
currentEntrance = RE_UNKNOWN;
62-
shuffledEntrance = RE_UNKNOWN;
63-
return;
64-
}
65-
66-
// Skip entering the Castle Courtyard from the Castle Interior.
67-
if (currentEntrance == RE_UNKNOWN && ev->warpNode->destLevel == LEVEL_CASTLE_COURTYARD) {
68-
return;
69-
}
70-
71-
if (ev->sourceWarpNode > 0 && currentEntrance != RE_UNKNOWN) {
47+
if (ev->sourceWarpNode >= 241 && currentEntrance != RE_UNKNOWN) {
7248
Rando::StaticData::RandoStaticEntrance randoStaticEntrance = Rando::StaticData::Entrances[currentEntrance];
7349

7450
ev->warpNode->destNode = randoStaticEntrance.deathWarpId;

0 commit comments

Comments
 (0)