- looks I missed a few shorts.

Now all local short variables are gone, except for 2 lotags arrays.
This commit is contained in:
Christoph Oelckers 2021-11-07 16:58:48 +01:00
parent ae08ae1d8d
commit 4b0ffe5443
4 changed files with 12 additions and 12 deletions

View file

@ -189,9 +189,9 @@ void addminecart(int p1, int p2, int i, int iht, int p3, int childsectnum)
void dotorch(void)
{
int ds;
short j;
short startwall, endwall;
char shade;
int j;
int startwall, endwall;
uint8_t shade;
ds = krand()&8;
for (int i = 0; i < torchcnt; i++)
{
@ -377,11 +377,11 @@ void dojaildoor(void)
void moveminecart(void)
{
short i;
short j;
short csect;
short startwall;
short endwall;
int i;
int j;
int csect;
int startwall;
int endwall;
int speed;
int y;
int x;
@ -561,7 +561,7 @@ void thunder(void)
{
struct player_struct* p;
int r1, r2;
short startwall, endwall, i, j;
int startwall, endwall, i, j;
uint8_t shade;
p = &ps[screenpeek];

View file

@ -2704,7 +2704,7 @@ void processinput_d(int snum)
int j, k, doubvel, fz, cz, truefdist;
Collision chz, clz;
bool shrunk;
short psect, psectlotag;
int psect, psectlotag;
struct player_struct* p;
spritetype* s;

View file

@ -274,7 +274,7 @@ void cacheit_d(void)
void prelevel_d(int g)
{
short i, j, startwall, endwall, lotaglist;
int i, j, startwall, endwall, lotaglist;
short lotags[65];
prelevel_common(g);

View file

@ -976,7 +976,7 @@ static void lotsofpopcorn(DDukeActor *actor, int wallnum, int n)
void checkhitwall_r(DDukeActor* spr, int dawallnum, int x, int y, int z, int atwith)
{
short j, i;
int j, i;
int sn = -1, darkestwall;
walltype* wal;
spritetype* s;