mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Initialize rottile values to -1 with a loop like this instead, because doing it the C++ way increases the binary size by like 120KB
git-svn-id: https://svn.eduke32.com/eduke32@7255 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
891bac2b0f
commit
ae39954376
2 changed files with 5 additions and 2 deletions
|
@ -832,7 +832,7 @@ typedef struct {
|
||||||
uint8_t sf; // anim. speed and flags
|
uint8_t sf; // anim. speed and flags
|
||||||
} picanm_t;
|
} picanm_t;
|
||||||
EXTERN picanm_t picanm[MAXTILES];
|
EXTERN picanm_t picanm[MAXTILES];
|
||||||
typedef struct { int16_t newtile = -1; int16_t owner = -1; } rottile_t;
|
typedef struct { int16_t newtile; int16_t owner; } rottile_t;
|
||||||
EXTERN rottile_t rottile[MAXTILES];
|
EXTERN rottile_t rottile[MAXTILES];
|
||||||
EXTERN intptr_t waloff[MAXTILES]; // stores pointers to cache -- SA
|
EXTERN intptr_t waloff[MAXTILES]; // stores pointers to cache -- SA
|
||||||
|
|
||||||
|
|
|
@ -555,9 +555,12 @@ int32_t artLoadFiles(const char *filename, int32_t askedsize)
|
||||||
Bmemset(&tilesiz[0], 0, sizeof(vec2s_t) * MAXTILES);
|
Bmemset(&tilesiz[0], 0, sizeof(vec2s_t) * MAXTILES);
|
||||||
Bmemset(picanm, 0, sizeof(picanm));
|
Bmemset(picanm, 0, sizeof(picanm));
|
||||||
|
|
||||||
|
for (auto &rot : rottile)
|
||||||
|
rot = { -1, -1 };
|
||||||
|
|
||||||
// artsize = 0;
|
// artsize = 0;
|
||||||
|
|
||||||
for (bssize_t tilefilei=0; tilefilei<MAXARTFILES_BASE; tilefilei++)
|
for (int tilefilei=0; tilefilei<MAXARTFILES_BASE; tilefilei++)
|
||||||
artReadIndexedFile(tilefilei);
|
artReadIndexedFile(tilefilei);
|
||||||
|
|
||||||
Bmemset(gotpic, 0, sizeof(gotpic));
|
Bmemset(gotpic, 0, sizeof(gotpic));
|
||||||
|
|
Loading…
Reference in a new issue