The old dynos warp hook params worked fine
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run

This commit is contained in:
Agent X 2025-05-01 21:37:44 -04:00
parent ee7d694940
commit 7568a8564f

View file

@ -263,7 +263,7 @@ static void *DynOS_Warp_UpdateWarp(void *aCmd, bool aIsLevelInitDone) {
}
// lua hooks
smlua_call_event_hooks_warp_params(HOOK_ON_WARP, sBackupWarpDest.type, sBackupWarpDest.levelNum, sBackupWarpDest.areaIdx, sBackupWarpDest.nodeId, sBackupWarpDest.arg);
smlua_call_event_hooks_warp_params(HOOK_ON_WARP, sBackupWarpDest.type, sDynosWarpLevelNum, sDynosWarpAreaNum, sDynosWarpNodeNum, sBackupWarpDest.arg);
// Reset values
sDynosWarpTargetArea = -1;
@ -411,7 +411,7 @@ static void *DynOS_Warp_UpdateExit(void *aCmd, bool aIsLevelInitDone) {
sDynosExitTargetWarp = NULL;
// lua hooks
smlua_call_event_hooks_warp_params(HOOK_ON_WARP, sBackupWarpDest.type, sBackupWarpDest.levelNum, sBackupWarpDest.areaIdx, sBackupWarpDest.nodeId, sBackupWarpDest.arg);
smlua_call_event_hooks_warp_params(HOOK_ON_WARP, sBackupWarpDest.type, sDynosWarpLevelNum, sDynosWarpAreaNum, sDynosWarpNodeNum, sBackupWarpDest.arg);
}
// Phase 4 - Unlock Mario as soon as the second transition is ended