diff --git a/src/m_menu.c b/src/m_menu.c index 51c13d5b3..1714e53a8 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -5094,9 +5094,10 @@ static void M_DrawLevelPlatterRow(UINT8 row, INT32 y) } // new menus -static void M_DrawRecordAttackBackground(void) +static void M_DrawRecordAttackForeground(void) { patch_t *fg = W_CachePatchName("RECATKFG", PU_CACHE); + patch_t *clock = W_CachePatchName("RECCLOCK", PU_CACHE); angle_t fa; INT32 i; @@ -5109,9 +5110,14 @@ static void M_DrawRecordAttackBackground(void) } fa = (FixedAngle(((recatkdrawtimer * 4) % 360)<>ANGLETOFINESHIFT) & FINEMASK; - V_DrawSciencePatch(160<= 0) V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, curbgcolor); else if (!curbghide || !titlemapinaction) + { F_SkyScroll(curbgxspeed, curbgyspeed, curbgname); + // Draw and animate foreground + if (!strncmp("RECATKBG", curbgname, 8)) + M_DrawRecordAttackForeground(); + } + if (curfadevalue) V_DrawFadeScreen(0xFF00, curfadevalue); - - // Draw and animate foreground -<<<<<<< HEAD - if ((!curbghide || !titlemapinaction) && !stricmp("RECATKBG", curbgname)) -======= - if (!curbghide && stricmp("RECATTBG", curbgname) < 0) ->>>>>>> 15b363773fbaeeb8e7c7ca032c48eb5072ea34d2 - M_DrawRecordAttackBackground(); } if (currentMenu->prevMenu == &SP_NightsAttackDef) @@ -5548,7 +5563,14 @@ static void M_DrawMessageMenu(void) if (levellistmode == LLM_NIGHTSATTACK) M_DrawNightsAttackMountains(); else + { F_SkyScroll(curbgxspeed, curbgyspeed, curbgname); + // Draw and animate foreground here, if desired. + // Check if (curbgname == "RECATKBG"), and if true, + // call the M_DrawRecordAttackForeground function. + // String check generally done with a strncmp. + // Can also draw the clock here. + } } if (curfadevalue) V_DrawFadeScreen(0xFF00, curfadevalue); @@ -8572,17 +8594,15 @@ void M_DrawTimeAttackMenu(void) if (curbgcolor >= 0) V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, curbgcolor); else if (!curbghide || !titlemapinaction) + { F_SkyScroll(curbgxspeed, curbgyspeed, curbgname); + // Draw and animate foreground + if (!strncmp("RECATKBG", curbgname, 8)) + M_DrawRecordAttackForeground(); + } if (curfadevalue) V_DrawFadeScreen(0xFF00, curfadevalue); - // Draw and animate foreground -<<<<<<< HEAD - if ((!curbghide || !titlemapinaction) && !stricmp("RECATKBG", curbgname)) -======= - if (!curbghide && stricmp("RECATTBG", curbgname) < 0) ->>>>>>> 15b363773fbaeeb8e7c7ca032c48eb5072ea34d2 - M_DrawRecordAttackBackground(); M_DrawMenuTitle(); // draw menu (everything else goes on top of it)