mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- fixed titlepic animation.
It needed more than using the animated accessor. The code here nearly went out of its way to circumvent the texture manager's built in logic.
This commit is contained in:
parent
f62e2f9ba3
commit
79b3c41677
2 changed files with 9 additions and 30 deletions
|
@ -225,8 +225,8 @@ int eventhead;
|
|||
int eventtail;
|
||||
gamestate_t wipegamestate = GS_DEMOSCREEN; // can be -1 to force a wipe
|
||||
bool PageBlank;
|
||||
FTexture *Page;
|
||||
FTexture *Advisory;
|
||||
FTextureID Page;
|
||||
bool nospriterename;
|
||||
FStartupInfo DoomStartupInfo;
|
||||
FString lastIWAD;
|
||||
|
@ -971,7 +971,8 @@ void D_DoomLoop ()
|
|||
|
||||
// Clamp the timer to TICRATE until the playloop has been entered.
|
||||
r_NoInterpolate = true;
|
||||
Page = Advisory = NULL;
|
||||
Page.SetInvalid();
|
||||
Advisory = nullptr;
|
||||
|
||||
vid_cursor.Callback();
|
||||
|
||||
|
@ -1056,9 +1057,9 @@ void D_PageTicker (void)
|
|||
void D_PageDrawer (void)
|
||||
{
|
||||
screen->Clear(0, 0, SCREENWIDTH, SCREENHEIGHT, 0, 0);
|
||||
if (Page != NULL)
|
||||
if (Page.Exists())
|
||||
{
|
||||
screen->DrawTexture (Page, 0, 0,
|
||||
screen->DrawTexture (TexMan(Page), 0, 0,
|
||||
DTA_Fullscreen, true,
|
||||
DTA_Masked, false,
|
||||
DTA_BilinearFilter, true,
|
||||
|
@ -1200,18 +1201,7 @@ void D_DoStrifeAdvanceDemo ()
|
|||
if (demosequence == 9 && !(gameinfo.flags & GI_SHAREWARE))
|
||||
demosequence = 10;
|
||||
|
||||
if (pagename)
|
||||
{
|
||||
if (Page != NULL)
|
||||
{
|
||||
Page->Unload ();
|
||||
Page = NULL;
|
||||
}
|
||||
if (pagename[0])
|
||||
{
|
||||
Page = TexMan[pagename];
|
||||
}
|
||||
}
|
||||
if (pagename != nullptr) Page = TexMan.CheckForTexture(pagename, ETextureType::MiscPatch);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
@ -1309,13 +1299,10 @@ void D_DoAdvanceDemo (void)
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
if (pagename.IsNotEmpty())
|
||||
{
|
||||
if (Page != NULL)
|
||||
{
|
||||
Page->Unload ();
|
||||
}
|
||||
Page = TexMan(pagename);
|
||||
Page = TexMan.CheckForTexture(pagename, ETextureType::MiscPatch);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1014,9 +1014,6 @@ bool G_Responder (event_t *ev)
|
|||
// G_Ticker
|
||||
// Make ticcmd_ts for the players.
|
||||
//
|
||||
extern FTexture *Page;
|
||||
|
||||
|
||||
void G_Ticker ()
|
||||
{
|
||||
int i;
|
||||
|
@ -1118,12 +1115,7 @@ void G_Ticker ()
|
|||
|
||||
if (oldgamestate != gamestate)
|
||||
{
|
||||
if (oldgamestate == GS_DEMOSCREEN && Page != NULL)
|
||||
{
|
||||
Page->Unload();
|
||||
Page = NULL;
|
||||
}
|
||||
else if (oldgamestate == GS_FINALE)
|
||||
if (oldgamestate == GS_FINALE)
|
||||
{
|
||||
F_EndFinale ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue