mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- hooked up SW's intermission handling.
This commit is contained in:
parent
aa148d602c
commit
5959543380
2 changed files with 24 additions and 30 deletions
|
@ -142,14 +142,6 @@ void GameInterface::Render()
|
|||
|
||||
void GameInterface::NextLevel(MapRecord* map, int skill)
|
||||
{
|
||||
#if 0
|
||||
// Loading is so fast on modern systems that this only serves as an irritant, not an asset.
|
||||
loadscreen(map, [=](bool)
|
||||
{
|
||||
enterlevel(map, 0);
|
||||
gameaction = ga_level;
|
||||
});
|
||||
#endif
|
||||
enterlevel(map, 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -88,10 +88,6 @@ CVAR(Bool, sw_bunnyrockets, false, CVAR_SERVERINFO | CVAR_CHEAT); // This is a
|
|||
|
||||
BEGIN_SW_NS
|
||||
|
||||
void Logo(const CompletionFunc& completion);
|
||||
void StatScreen(int FinishAnim, CompletionFunc completion);
|
||||
|
||||
|
||||
void pClearSpriteList(PLAYERp pp);
|
||||
|
||||
extern int sw_snd_scratch;
|
||||
|
@ -538,32 +534,37 @@ static void PlayOrderSound()
|
|||
|
||||
|
||||
|
||||
void GameInterface::LevelCompleted(MapRecord *map, int skill)
|
||||
void GameInterface::LevelCompleted(MapRecord* map, int skill)
|
||||
{
|
||||
//ResetPalette(mpp);
|
||||
COVER_SetReverb(0); // Reset reverb
|
||||
Player[myconnectindex].Reverb = 0;
|
||||
StopSound();
|
||||
//ResetPalette(mpp);
|
||||
COVER_SetReverb(0); // Reset reverb
|
||||
Player[myconnectindex].Reverb = 0;
|
||||
StopSound();
|
||||
STAT_Update(map == nullptr);
|
||||
|
||||
#if 0
|
||||
// else if (gNet.MultiGameType != MULTI_GAME_COMMBAT)
|
||||
StatScreen(FinishAnim, [=](bool)
|
||||
{
|
||||
SummaryInfo info{};
|
||||
|
||||
info.kills = Player->Kills;
|
||||
info.maxkills = TotalKillable;
|
||||
info.secrets = Player->SecretsFound;
|
||||
info.maxsecrets = LevelSecrets;
|
||||
info.time = PlayClock / 120;
|
||||
|
||||
ShowIntermission(currentLevel, map, &info, [=](bool)
|
||||
{
|
||||
if (map == nullptr)
|
||||
{
|
||||
FinishAnim = false;
|
||||
PlaySong(nullptr, ThemeSongs[0], ThemeTrack[0]);
|
||||
if (SW_SHAREWARE)
|
||||
{
|
||||
FinishAnim = false;
|
||||
PlaySong(nullptr, ThemeSongs[0], ThemeTrack[0]);
|
||||
if (isShareware())
|
||||
{
|
||||
PlayOrderSound();
|
||||
gameaction = ga_creditsmenu;
|
||||
}
|
||||
else gameaction = ga_mainmenu;
|
||||
}
|
||||
else gameaction = ga_nextlevel;
|
||||
});
|
||||
#endif
|
||||
else gameaction = ga_mainmenu;
|
||||
}
|
||||
else gameaction = ga_nextlevel;
|
||||
});
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
@ -591,6 +592,7 @@ void GameInterface::NewGame(MapRecord *map, int skill, bool)
|
|||
ShadowWarrior::NewGame = true;
|
||||
InitLevel(map);
|
||||
InitRunLevel();
|
||||
gameaction = ga_level;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue