Skip to content

Commit

Permalink
fix -Wdeprecated-non-prototype and -Wunused-but-set-variable in rt_ted.c
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed May 1, 2024
1 parent f5a9aef commit 9e328fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions rott/rt_ted.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ int GetLumpForTile(int tile);
#define SGN(x) ((x>0) ? (1) : ((x==0) ? (0) : (-1)))

/*--------------------------------------------------------------------------*/
int CompareTags(s1p,s2p) cachetype *s1p,*s2p;
int CompareTags(cachetype *s1p, cachetype *s2p)
{
return SGN(s1p->lump-s2p->lump);
}

void SwitchCacheEntries(s1p,s2p) cachetype *s1p,*s2p;
void SwitchCacheEntries(cachetype *s1p, cachetype *s2p)
{
cachetype temp;

Expand Down Expand Up @@ -3289,20 +3289,15 @@ void SetupDoorLinks (void)
int j,
i,
k;
unsigned short *map;
int clocklinked;
int clockx,clocky;
int doornumber;
unsigned short touchx,
touchy;

map = mapplanes[0];

for (j = 0; j < mapheight; j++)
for (i = 0; i < mapwidth; i++)
{
map++;

if (MAPSPOT (i, j, 2))
{
if (IsDoor(i,j)==1)
Expand Down

0 comments on commit 9e328fb

Please sign in to comment.