Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 23, 2024
1 parent 9dd5ae1 commit 791020a
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 105 deletions.
202 changes: 101 additions & 101 deletions src/f_finale.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,114 +156,114 @@ void F_StartFinale(void)
F_StartCast();
return;
}

// Okay - IWAD dependent stuff.
// This has been changed severely, and
// some stuff might have changed in the process.
switch (gamemode)
{
// DOOM 1 - E1, E3 or E4, but each nine missions
case shareware:
case registered:
case retail:
S_ChangeMusic(mus_victor, true, false, false);

switch (gameepisode)
{
case 1:
finaleflat = bgflatE1;
finaletext = s_E1TEXT;
break;

case 2:
finaleflat = bgflatE2;
finaletext = s_E2TEXT;
break;

case 3:
finaleflat = bgflatE3;
finaletext = s_E3TEXT;
break;

case 4:
finaleflat = bgflatE4;
finaletext = s_E4TEXT;
break;

case 5:
finaleflat = bgflatE5;
finaletext = s_E5TEXT;
break;

case 6:
finaleflat = bgflatE6;
finaletext = s_E6TEXT;
break;
}
// Okay - IWAD dependent stuff.
// This has been changed severely, and
// some stuff might have changed in the process.
switch (gamemode)
{
// DOOM 1 - E1, E3 or E4, but each nine missions
case shareware:
case registered:
case retail:
S_ChangeMusic(mus_victor, true, false, false);

break;
switch (gameepisode)
{
case 1:
finaleflat = bgflatE1;
finaletext = s_E1TEXT;
break;

// DOOM II and missions packs with E1, M34
case commercial:
S_ChangeMusic(mus_read_m, true, false, false);
case 2:
finaleflat = bgflatE2;
finaletext = s_E2TEXT;
break;

switch (gamemap)
{
case 6:
case 3:
finaleflat = bgflatE3;
finaletext = s_E3TEXT;
break;

case 4:
finaleflat = bgflatE4;
finaletext = s_E4TEXT;
break;

case 5:
finaleflat = bgflatE5;
finaletext = s_E5TEXT;
break;

case 6:
finaleflat = bgflatE6;
finaletext = s_E6TEXT;
break;
}

break;

// DOOM II and missions packs with E1, M34
case commercial:
S_ChangeMusic(mus_read_m, true, false, false);

switch (gamemap)
{
case 6:
finaleflat = bgflat06;
finaletext = (gamemission == pack_tnt ? s_T1TEXT :
(gamemission == pack_plut ? s_P1TEXT : s_C1TEXT));
break;

case 8:
if (gamemission == pack_nerve)
{
finaleflat = bgflat06;
finaletext = (gamemission == pack_tnt ? s_T1TEXT :
(gamemission == pack_plut ? s_P1TEXT : s_C1TEXT));
break;

case 8:
if (gamemission == pack_nerve)
{
finaleflat = bgflat06;
finaletext = s_N1TEXT;
}

break;

case 11:
finaleflat = bgflat11;
finaletext = (gamemission == pack_tnt ? s_T2TEXT :
(gamemission == pack_plut ? s_P2TEXT : s_C2TEXT));
break;

case 20:
finaleflat = bgflat20;
finaletext = (gamemission == pack_tnt ? s_T3TEXT :
(gamemission == pack_plut ? s_P3TEXT : s_C3TEXT));
break;

case 30:
finaleflat = bgflat30;
finaletext = (gamemission == pack_tnt ? s_T4TEXT :
(gamemission == pack_plut ? s_P4TEXT : s_C4TEXT));
break;

case 15:
finaleflat = bgflat15;
finaletext = (gamemission == pack_tnt ? s_T5TEXT :
(gamemission == pack_plut ? s_P5TEXT : s_C5TEXT));
break;

case 31:
finaleflat = bgflat31;
finaletext = (gamemission == pack_tnt ? s_T6TEXT :
(gamemission == pack_plut ? s_P6TEXT : s_C6TEXT));
break;
}
finaletext = s_N1TEXT;
}

break;
break;

// Indeterminate.
default:
S_ChangeMusic(mus_read_m, true, false, false);
finaleflat = "F_SKY1";
finaletext = s_C1TEXT;
break;
}
case 11:
finaleflat = bgflat11;
finaletext = (gamemission == pack_tnt ? s_T2TEXT :
(gamemission == pack_plut ? s_P2TEXT : s_C2TEXT));
break;

case 20:
finaleflat = bgflat20;
finaletext = (gamemission == pack_tnt ? s_T3TEXT :
(gamemission == pack_plut ? s_P3TEXT : s_C3TEXT));
break;

case 30:
finaleflat = bgflat30;
finaletext = (gamemission == pack_tnt ? s_T4TEXT :
(gamemission == pack_plut ? s_P4TEXT : s_C4TEXT));
break;

case 15:
finaleflat = bgflat15;
finaletext = (gamemission == pack_tnt ? s_T5TEXT :
(gamemission == pack_plut ? s_P5TEXT : s_C5TEXT));
break;

case 31:
finaleflat = bgflat31;
finaletext = (gamemission == pack_tnt ? s_T6TEXT :
(gamemission == pack_plut ? s_P6TEXT : s_C6TEXT));
break;
}

break;

// Indeterminate.
default:
S_ChangeMusic(mus_read_m, true, false, false);
finaleflat = "F_SKY1";
finaletext = s_C1TEXT;
break;
}

if (strlen(finaletext) <= 1)
{
Expand Down
6 changes: 2 additions & 4 deletions src/wi_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1003,17 +1003,15 @@ static void WI_DrawShowNextLoc(void)

if (gamemode != commercial)
{
int last;

if (wbs->epsd > 2)
{
WI_DrawEL();
return;
}

if (!animation || !array_size(animation->states))
if (!animation || !animation->enteringstates)
{
last = (wbs->last == 8 ? wbs->next - 1 : wbs->last);
const int last = (wbs->last == 8 ? wbs->next - 1 : wbs->last);

// draw a splat on taken cities.
for (int i = 0; i <= last; i++)
Expand Down

0 comments on commit 791020a

Please sign in to comment.