mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
- set proper game state after ending the level summary screen.
Fixes #20.
This commit is contained in:
parent
b111ca5f96
commit
af970b091e
2 changed files with 6 additions and 2 deletions
|
@ -452,6 +452,10 @@ void RunScreenJobFrame()
|
|||
// we cannot recover from this because we have no completion callback to call.
|
||||
if (!runner) I_Error("Trying to run a non-existent screen job");
|
||||
auto res = runner->RunFrame();
|
||||
if (!res) DeleteScreenJob();
|
||||
if (!res)
|
||||
{
|
||||
assert(gamestate != GS_INTERMISSION && gamestate != GS_INTRO);
|
||||
DeleteScreenJob();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1132,7 +1132,7 @@ void exitlevel(void)
|
|||
|
||||
// Clear potentially loaded per-map ART only after the bonus screens.
|
||||
artClearMapArt();
|
||||
|
||||
gamestate = GS_LEVEL;
|
||||
if (endofgame)
|
||||
{
|
||||
ud.eog = 0;
|
||||
|
|
Loading…
Reference in a new issue