mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Exhumed: Tidy up a few remaining globals in the sequence system.
This commit is contained in:
parent
4a37453765
commit
04eb0fe926
5 changed files with 3 additions and 11 deletions
|
@ -116,9 +116,6 @@ void MySetView(int x1, int y1, int x2, int y2);
|
|||
|
||||
char sHollyStr[40];
|
||||
|
||||
FTextureID nBackgroundPic;
|
||||
FTextureID nShadowPic;
|
||||
|
||||
int nCreaturesKilled = 0, nCreaturesTotal = 0;
|
||||
|
||||
int nFreeze;
|
||||
|
|
|
@ -99,9 +99,6 @@ extern int nNetTime;
|
|||
|
||||
extern int nTotalPlayers;
|
||||
|
||||
extern FTextureID nBackgroundPic;
|
||||
extern FTextureID nShadowPic;
|
||||
|
||||
extern int nCreaturesTotal, nCreaturesKilled;
|
||||
|
||||
extern int lLocalButtons;
|
||||
|
|
|
@ -40,7 +40,8 @@ enum
|
|||
int16_t nPilotLightFrame;
|
||||
int16_t nPilotLightCount;
|
||||
|
||||
int16_t nShadowWidth = 1;
|
||||
static FTextureID nShadowPic;
|
||||
static int16_t nShadowWidth = 1;
|
||||
int16_t nFlameHeight = 1;
|
||||
|
||||
const char *SeqNames[kMaxSEQFiles] =
|
||||
|
@ -321,8 +322,6 @@ void seq_LoadSequences()
|
|||
|
||||
nFlameHeight = (int16_t)TexMan.GetGameTexture(getSequence("firepoof").getFirstTexID())->GetDisplayHeight();
|
||||
|
||||
nBackgroundPic = getSequence("backgrnd").getFirstTexID();
|
||||
|
||||
nPilotLightCount = getSequence("flamer", 3).frames.Size();
|
||||
nPilotLightFrame = 0;
|
||||
|
||||
|
|
|
@ -73,7 +73,6 @@ struct Seq
|
|||
}
|
||||
};
|
||||
|
||||
extern int16_t nShadowWidth;
|
||||
extern int16_t nFlameHeight;
|
||||
|
||||
extern int16_t nPilotLightFrame;
|
||||
|
|
|
@ -47,7 +47,7 @@ BEGIN_PS_NS
|
|||
|
||||
void UpdateFrame()
|
||||
{
|
||||
auto tex = TexMan.GetGameTexture(nBackgroundPic);
|
||||
static const auto tex = TexMan.GetGameTexture(getSequence("backgrnd").getFirstTexID());
|
||||
|
||||
twod->AddFlatFill(0, 0, twod->GetWidth(), viewport3d.Top() - 3, tex);
|
||||
twod->AddFlatFill(0, viewport3d.Bottom() + 3, twod->GetWidth(), twod->GetHeight(), tex);
|
||||
|
|
Loading…
Reference in a new issue