mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix instantaneous menu background image slideout on fade wipe
If the renderdeltatics is lagged enough, perform no change - a smaller delta should be along shortly.
This commit is contained in:
parent
b94f64e82f
commit
75257fbdd2
1 changed files with 7 additions and 4 deletions
|
|
@ -205,15 +205,18 @@ void M_DrawMenuBackground(void)
|
|||
V_DrawFixedPatch(8 * FRACUNIT, -bgText1Scroll + text1loop,
|
||||
FRACUNIT, V_SUBTRACT, text1, NULL);
|
||||
|
||||
bgText1Scroll += (MENUBG_TEXTSCROLL*renderdeltatics);
|
||||
while (bgText1Scroll > text1loop)
|
||||
bgText1Scroll -= text1loop;
|
||||
|
||||
V_DrawFixedPatch(-bgText2Scroll, (BASEVIDHEIGHT-8) * FRACUNIT,
|
||||
FRACUNIT, V_ADD, text2, NULL);
|
||||
V_DrawFixedPatch(-bgText2Scroll + text2loop, (BASEVIDHEIGHT-8) * FRACUNIT,
|
||||
FRACUNIT, V_ADD, text2, NULL);
|
||||
|
||||
if (renderdeltatics > 2*FRACUNIT)
|
||||
return; // wipe hitch...
|
||||
|
||||
bgText1Scroll += (MENUBG_TEXTSCROLL*renderdeltatics);
|
||||
while (bgText1Scroll > text1loop)
|
||||
bgText1Scroll -= text1loop;
|
||||
|
||||
bgText2Scroll += (MENUBG_TEXTSCROLL*renderdeltatics);
|
||||
while (bgText2Scroll > text2loop)
|
||||
bgText2Scroll -= text2loop;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue