- Duke: moved the temtempsector* arrays into the only function using them

This commit is contained in:
Christoph Oelckers 2021-11-11 23:32:49 +01:00
parent 8f19dc12d8
commit 2e3c212444
2 changed files with 3 additions and 7 deletions

View file

@ -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;

View file

@ -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)