File tree 1 file changed +14
-6
lines changed
1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -1633,16 +1633,24 @@ static boolean AllowEndDoom(void)
1633
1633
|| exit_sequence == EXIT_SEQUENCE_ENDOOM_ONLY ));
1634
1634
}
1635
1635
1636
- static boolean AllowEndDoomPWADOnly () {
1637
- return (!W_IsIWADLump (W_CheckNumForName ("ENDOOM" )) && endoom_pwad_only );
1638
- }
1639
-
1640
1636
static void D_EndDoom (void )
1641
1637
{
1642
- if (AllowEndDoom () && AllowEndDoomPWADOnly ())
1638
+ // Do we even want to show an ENDOOM?
1639
+ if (!AllowEndDoom ())
1643
1640
{
1644
- D_ShowEndDoom () ;
1641
+ return ;
1645
1642
}
1643
+
1644
+ // If so, is it from the IWAD?
1645
+ bool iwad_endoom = W_IsIWADLump (W_CheckNumForName ("ENDOOM" ));
1646
+
1647
+ // Does the user want to see it, in that case?
1648
+ if (iwad_endoom && endoom_pwad_only )
1649
+ {
1650
+ return ;
1651
+ }
1652
+
1653
+ D_ShowEndDoom ();
1646
1654
}
1647
1655
1648
1656
// [FG] fast-forward demo to the desired map
You can’t perform that action at this time.
0 commit comments