mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-22 07:32:07 -05:00
Peachy get any warp node fix
Co-Authored-By: PeachyPeach <72323920+PeachyPeachSM64@users.noreply.github.com>
This commit is contained in:
parent
885edd165d
commit
f15177ddb2
1 changed files with 1 additions and 1 deletions
|
@ -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; }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue