mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
- Duke: moved the temtempsector* arrays into the only function using them
This commit is contained in:
parent
8f19dc12d8
commit
2e3c212444
2 changed files with 3 additions and 7 deletions
|
@ -1,9 +1,5 @@
|
||||||
BEGIN_DUKE_NS
|
BEGIN_DUKE_NS
|
||||||
|
|
||||||
extern int tempsectorz[MAXSECTORS];
|
|
||||||
extern int tempsectorpicnum[MAXSECTORS];
|
|
||||||
|
|
||||||
|
|
||||||
void SE40_Draw(int tag, spritetype *spr, int x, int y, int z, binangle a, fixedhoriz h, int smoothratio)
|
void SE40_Draw(int tag, spritetype *spr, int x, int y, int z, binangle a, fixedhoriz h, int smoothratio)
|
||||||
{
|
{
|
||||||
int i, j = 0, k = 0;
|
int i, j = 0, k = 0;
|
||||||
|
@ -17,6 +13,9 @@ void SE40_Draw(int tag, spritetype *spr, int x, int y, int z, binangle a, fixedh
|
||||||
tileDelete(FOF);
|
tileDelete(FOF);
|
||||||
if (!testgotpic(FOF, true)) return;
|
if (!testgotpic(FOF, true)) return;
|
||||||
|
|
||||||
|
TArray<int> tempsectorz(numsectors, true);
|
||||||
|
TArray<int> tempsectorpicnum(numsectors, true);
|
||||||
|
|
||||||
floor1 = spr;
|
floor1 = spr;
|
||||||
|
|
||||||
if (spr->lotag == tag + 2) fofmode = tag + 0;
|
if (spr->lotag == tag + 2) fofmode = tag + 0;
|
||||||
|
|
|
@ -64,9 +64,6 @@ BEGIN_DUKE_NS
|
||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
/*static*/ int tempsectorz[MAXSECTORS];
|
|
||||||
/*static*/ int tempsectorpicnum[MAXSECTORS];
|
|
||||||
|
|
||||||
void renderView(spritetype* playersprite, int sectnum, int x, int y, int z, binangle a, fixedhoriz h, binangle rotscrnang, int smoothratio)
|
void renderView(spritetype* playersprite, int sectnum, int x, int y, int z, binangle a, fixedhoriz h, binangle rotscrnang, int smoothratio)
|
||||||
{
|
{
|
||||||
if (!testnewrenderer)
|
if (!testnewrenderer)
|
||||||
|
|
Loading…
Reference in a new issue