mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 22:51:11 +00:00
SAGA2: Make ending playable
This commit is contained in:
parent
e83fed6c60
commit
c5322b246a
@ -74,10 +74,8 @@ static void TroModeSetup(void);
|
|||||||
static void TroModeCleanup(void);
|
static void TroModeCleanup(void);
|
||||||
|
|
||||||
static bool abortFlag = false;
|
static bool abortFlag = false;
|
||||||
#ifndef NO_LOAD_AFTER_WIN
|
|
||||||
//DO_OUTRO_IN_CLEANUP
|
//DO_OUTRO_IN_CLEANUP
|
||||||
static int whichOutro = -1;
|
static int whichOutro = -1;
|
||||||
#endif
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// Play intro video
|
// Play intro video
|
||||||
@ -104,19 +102,8 @@ void setOutroMode(void) {
|
|||||||
extern GameWorld *currentWorld; // pointer to the current world
|
extern GameWorld *currentWorld; // pointer to the current world
|
||||||
|
|
||||||
void setWintroMode(int16 whichOne) {
|
void setWintroMode(int16 whichOne) {
|
||||||
#ifdef NO_LOAD_AFTER_WIN
|
|
||||||
if (!abortFlag) {
|
|
||||||
freeAllTileBanks();
|
|
||||||
currentWorld = NULL;
|
|
||||||
TroModeSetup();
|
|
||||||
doWintro(whichOne);
|
|
||||||
TroModeCleanup();
|
|
||||||
}
|
|
||||||
endGame();
|
|
||||||
#else
|
|
||||||
whichOutro = whichOne;
|
whichOutro = whichOne;
|
||||||
allPlayerActorsDead = true;
|
allPlayerActorsDead = true;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
@ -127,6 +114,7 @@ void fadeUp();
|
|||||||
void dumpGBASE(char *msg);
|
void dumpGBASE(char *msg);
|
||||||
|
|
||||||
void setLostroMode(void) {
|
void setLostroMode(void) {
|
||||||
|
abortFlag = false;
|
||||||
allPlayerActorsDead = false;
|
allPlayerActorsDead = false;
|
||||||
if (GameMode::newmodeFlag)
|
if (GameMode::newmodeFlag)
|
||||||
GameMode::update();
|
GameMode::update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user