diff --git a/src/m_menu.c b/src/m_menu.c index 1b6d9b04b..8aa907027 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -5289,9 +5289,9 @@ static void M_DrawNightsAttackBackground(void) INT32 fronttopwidth = SHORT(fronttopfg->width); // bottom - patch_t *backbottomfg = W_CachePatchName("NTSATKB1", PU_CACHE); + //patch_t *backbottomfg = W_CachePatchName("NTSATKB1", PU_CACHE); patch_t *frontbottomfg = W_CachePatchName("NTSATKB2", PU_CACHE); - INT32 backbottomwidth = SHORT(backbottomfg->width); + //INT32 backbottomwidth = SHORT(backbottomfg->width); INT32 frontbottomwidth = SHORT(frontbottomfg->width); // top border @@ -5300,8 +5300,8 @@ static void M_DrawNightsAttackBackground(void) INT32 topborderheight = SHORT(topborder->height); // Snap patches to bottom - INT32 backbottomheight = SHORT(backbottomfg->height); - INT32 frontbottomheight = SHORT(frontbottomfg->height); + //INT32 backbottomheight = SHORT(backbottomfg->height); + //INT32 frontbottomheight = SHORT(frontbottomfg->height); // only use one dup, to avoid stretching (har har) dupx = dupy = (dupx < dupy ? dupx : dupy); @@ -5314,15 +5314,29 @@ static void M_DrawNightsAttackBackground(void) y = snapy; // back top foreground patch - x -= (ntsatkdrawtimer%backtopwidth); + x = -(ntsatkdrawtimer%backtopwidth); + x *= dupx; V_DrawFixedPatch(x<