#include #include extern char CurrentLevel, CurrentWorld; extern u8 MaybeFinishingLevel[2]; extern "C" void ExitStageReal(int scene, int sceneParams, int powerupStoreType, int wipe); extern "C" void ExitStageWrapper(int scene, int sceneParams, int powerupStoreType, int wipe) { if (scene == WORLD_MAP && powerupStoreType == BEAT_LEVEL) { if (CurrentWorld == 6 && CurrentLevel == STAGE_DOOMSHIP) { if (MaybeFinishingLevel[0] == 6 && MaybeFinishingLevel[1] == STAGE_DOOMSHIP) { // We're done with 7-38 ExitStage(MOVIE, 0x10000000, powerupStoreType, wipe); return; } } } ExitStageReal(scene, sceneParams, powerupStoreType, wipe); }