mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Mirror a wipe if it's forced off and the counter-wipe is specified
This commit is contained in:
parent
765e4b3134
commit
53b956f540
1 changed files with 8 additions and 0 deletions
|
@ -2675,6 +2675,14 @@ static void M_HandleMenuMetaState(menu_t *newMenu)
|
|||
wipetypepre = ((exitwipe && enterlevel <= exitlevel) || anceslevel < 0) ? exitwipe : INT16_MAX;
|
||||
wipetypepost = ((enterwipe && enterlevel >= exitlevel) || anceslevel < 0) ? enterwipe : INT16_MAX;
|
||||
wipegamestate = FORCEWIPE;
|
||||
|
||||
// If just one of the above is a force not-wipe,
|
||||
// mirror the other wipe.
|
||||
if (wipetypepre != INT16_MAX && wipetypepost == INT16_MAX)
|
||||
wipetypepost = wipetypepre;
|
||||
else if (wipetypepost != INT16_MAX && wipetypepre == INT16_MAX)
|
||||
wipetypepre = wipetypepost;
|
||||
|
||||
// D_Display runs the next step of processing
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue