Build fixes, oops

git-svn-id: https://svn.eduke32.com/eduke32@6805 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-04-04 21:06:07 +00:00
parent 316db0ee5e
commit 23471fdf0a
3 changed files with 6 additions and 5 deletions

View file

@ -114,14 +114,13 @@ void A_RadiusDamage(int spriteNum, int blastRadius, int dmg1, int dmg2, int dmg3
int32_t sectorCount = 0; int32_t sectorCount = 0;
int32_t numSectors = 1; int32_t numSectors = 1;
int16_t sectorList[64] = { pSprite->sectnum };
#ifndef EDUKE32_STANDALONE #ifndef EDUKE32_STANDALONE
if ((pSprite->picnum == RPG && pSprite->xrepeat < 11) || pSprite->picnum == SHRINKSPARK) if ((pSprite->picnum == RPG && pSprite->xrepeat < 11) || pSprite->picnum == SHRINKSPARK)
goto SKIPWALLCHECK; goto SKIPWALLCHECK;
#endif #endif
int16_t sectorList[64] = { pSprite->sectnum };
do do
{ {
int const sectorNum = sectorList[sectorCount++]; int const sectorNum = sectorList[sectorCount++];
@ -464,7 +463,7 @@ int32_t A_MoveSpriteClipdist(int32_t spriteNum, vec3_t const * const change, uin
} }
int16_t newSectnum = pSprite->sectnum; int16_t newSectnum = pSprite->sectnum;
int const UNUSED(oldSectnum) = newSectnum; int const oldSectnum = newSectnum;
int32_t newZ = pSprite->z - 2 * tilesiz[pSprite->picnum].y * pSprite->yrepeat; int32_t newZ = pSprite->z - 2 * tilesiz[pSprite->picnum].y * pSprite->yrepeat;
int const oldZ = pSprite->z; int const oldZ = pSprite->z;

View file

@ -730,7 +730,7 @@ static void G_ShowCacheLocks(void)
if (k >= ydim-12) if (k >= ydim-12)
break; break;
Bsprintf(tempbuf, "Locked- %d: Leng:%zu, Lock:%d", i, cac[i].leng, *cac[i].lock); Bsprintf(tempbuf, "Locked- %d: Leng:%d, Lock:%d", i, cac[i].leng, *cac[i].lock);
printext256(0L, k, COLOR_WHITE, -1, tempbuf, 1); printext256(0L, k, COLOR_WHITE, -1, tempbuf, 1);
k += 6; k += 6;
} }

View file

@ -145,7 +145,7 @@ int G_CheckActivatorMotion(int lotag)
return 0; return 0;
} }
int CheckDoorTile(int UNUSED(tileNum)) int CheckDoorTile(int tileNum)
{ {
#ifndef EDUKE32_STANDALONE #ifndef EDUKE32_STANDALONE
switch (DYNAMICTILEMAP(tileNum)) switch (DYNAMICTILEMAP(tileNum))
@ -174,6 +174,8 @@ int CheckDoorTile(int UNUSED(tileNum))
case DOORTILE23__STATIC: case DOORTILE23__STATIC:
return 1; return 1;
} }
#else
UNREFERENCED_PARAMETER(tileNum);
#endif #endif
return 0; return 0;
} }