mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 17:32:19 -05:00
Fix: Switch Age No Longer Reloads Start Room (#2679)
This commit is contained in:
parent
d56899dd0b
commit
6f8207d3bb
@ -181,9 +181,11 @@ void RegisterSwitchAge() {
|
|||||||
gSaveContext.nextTransitionType == 255) {
|
gSaveContext.nextTransitionType == 255) {
|
||||||
GET_PLAYER(gPlayState)->actor.shape.rot.y = playerYaw;
|
GET_PLAYER(gPlayState)->actor.shape.rot.y = playerYaw;
|
||||||
GET_PLAYER(gPlayState)->actor.world.pos = playerPos;
|
GET_PLAYER(gPlayState)->actor.world.pos = playerPos;
|
||||||
func_8009728C(gPlayState, roomCtx, roomNum); //load original room
|
if (roomNum != roomCtx->curRoom.num) {
|
||||||
//func_800973FC(gPlayState, &gPlayState->roomCtx); // commit to room load?
|
func_8009728C(gPlayState, roomCtx, roomNum); //load original room
|
||||||
func_80097534(gPlayState, roomCtx); // load map for new room (unloading the previous room)
|
//func_800973FC(gPlayState, &gPlayState->roomCtx); // commit to room load?
|
||||||
|
func_80097534(gPlayState, roomCtx); // load map for new room (unloading the previous room)
|
||||||
|
}
|
||||||
warped = false;
|
warped = false;
|
||||||
CVarSetInteger("gSwitchAge", 0);
|
CVarSetInteger("gSwitchAge", 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user