Peachy get any warp node fix

Co-Authored-By: PeachyPeach <72323920+PeachyPeachSM64@users.noreply.github.com>
This commit is contained in:
Agent X 2024-12-07 22:42:16 -05:00
parent 885edd165d
commit f15177ddb2

View file

@ -180,7 +180,7 @@ struct ObjectWarpNode *area_get_any_warp_node(void) {
struct ObjectWarpNode *pick = NULL;
for (node = gCurrentArea->warpNodes; node != NULL; node = node->next) {
if (node->node.destLevel != gCurrLevelNum) { continue; }
if (node->node.destLevel & 0x7F != gCurrLevelNum) { continue; }
if (!pick) { pick = node; continue; }
if (node->node.destArea < pick->node.destArea) { pick = node; }
}