mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Encore support, gif fix and slight optimization
This commit is contained in:
parent
66740e96dc
commit
f559f24c07
4 changed files with 22 additions and 31 deletions
|
|
@ -415,7 +415,7 @@ void F_WipeStageTitle(void)
|
||||||
if ((WipeStageTitle) && G_IsTitleCardAvailable())
|
if ((WipeStageTitle) && G_IsTitleCardAvailable())
|
||||||
{
|
{
|
||||||
ST_runTitleCard();
|
ST_runTitleCard();
|
||||||
ST_drawWipeTitleCard();
|
ST_drawTitleCard();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
37
src/g_game.c
37
src/g_game.c
|
|
@ -1310,26 +1310,27 @@ void G_StartTitleCard(void)
|
||||||
void G_PreLevelTitleCard(void)
|
void G_PreLevelTitleCard(void)
|
||||||
{
|
{
|
||||||
#ifndef NOWIPE
|
#ifndef NOWIPE
|
||||||
tic_t strtime = I_GetTime();
|
tic_t strtime = I_GetTime();
|
||||||
tic_t endtime = strtime + (PRELEVELTIME*NEWTICRATERATIO);
|
tic_t endtime = strtime + (PRELEVELTIME*NEWTICRATERATIO);
|
||||||
tic_t nowtime = strtime;
|
tic_t nowtime = strtime;
|
||||||
tic_t lasttime = strtime;
|
tic_t lasttime = strtime;
|
||||||
while (nowtime < endtime)
|
while (nowtime < endtime)
|
||||||
{
|
{
|
||||||
// draw loop
|
// draw loop
|
||||||
while (!((nowtime = I_GetTime()) - lasttime))
|
ST_runTitleCard();
|
||||||
I_Sleep();
|
ST_preLevelTitleCardDrawer();
|
||||||
lasttime = nowtime;
|
I_FinishUpdate(); // page flip or blit buffer
|
||||||
|
NetKeepAlive(); // Prevent timeouts
|
||||||
|
|
||||||
ST_runTitleCard();
|
if (moviemode)
|
||||||
ST_drawTitleCard();
|
M_SaveFrame();
|
||||||
I_FinishUpdate(); // page flip or blit buffer
|
if (takescreenshot) // Only take screenshots after drawing.
|
||||||
|
M_DoScreenShot();
|
||||||
|
|
||||||
if (moviemode)
|
while (!((nowtime = I_GetTime()) - lasttime))
|
||||||
M_SaveFrame();
|
I_Sleep();
|
||||||
if (takescreenshot) // Only take screenshots after drawing.
|
lasttime = nowtime;
|
||||||
M_DoScreenShot();
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -950,7 +950,7 @@ void ST_drawTitleCard(void)
|
||||||
|
|
||||||
// Avoid HOMs while drawing the start of the titlecard
|
// Avoid HOMs while drawing the start of the titlecard
|
||||||
if (lt_ticker < TTANIMSTART)
|
if (lt_ticker < TTANIMSTART)
|
||||||
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31);
|
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, levelfadecol);
|
||||||
|
|
||||||
// Background zig-zags
|
// Background zig-zags
|
||||||
V_DrawFixedPatch((chev1x)*FRACUNIT, (chev1y)*FRACUNIT, FRACUNIT, chevtflag, tcchev1, NULL);
|
V_DrawFixedPatch((chev1x)*FRACUNIT, (chev1y)*FRACUNIT, FRACUNIT, chevtflag, tcchev1, NULL);
|
||||||
|
|
@ -1055,20 +1055,11 @@ void ST_preLevelTitleCardDrawer(void)
|
||||||
{
|
{
|
||||||
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, levelfadecol);
|
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, levelfadecol);
|
||||||
|
|
||||||
ST_drawWipeTitleCard();
|
ST_drawTitleCard();
|
||||||
I_OsPolling();
|
I_OsPolling();
|
||||||
I_UpdateNoBlit();
|
I_UpdateNoBlit();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// Draw the title card while on a wipe.
|
|
||||||
// Also used in G_PreLevelTitleCard.
|
|
||||||
//
|
|
||||||
void ST_drawWipeTitleCard(void)
|
|
||||||
{
|
|
||||||
ST_drawTitleCard();
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Draw the status bar overlay, customisable: the user chooses which
|
// Draw the status bar overlay, customisable: the user chooses which
|
||||||
// kind of information to overlay
|
// kind of information to overlay
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,6 @@ void ST_runTitleCard(void);
|
||||||
void ST_drawTitleCard(void);
|
void ST_drawTitleCard(void);
|
||||||
void ST_preDrawTitleCard(void);
|
void ST_preDrawTitleCard(void);
|
||||||
void ST_preLevelTitleCardDrawer(void);
|
void ST_preLevelTitleCardDrawer(void);
|
||||||
void ST_drawWipeTitleCard(void);
|
|
||||||
|
|
||||||
extern tic_t lt_ticker, lt_lasttic;
|
extern tic_t lt_ticker, lt_lasttic;
|
||||||
extern tic_t lt_exitticker, lt_endtime;
|
extern tic_t lt_exitticker, lt_endtime;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue