- deleted unused functions.

This commit is contained in:
Christoph Oelckers 2021-11-28 12:54:22 +01:00
parent a59173ac31
commit 9213eae606
2 changed files with 1 additions and 14 deletions

View file

@ -509,19 +509,6 @@ inline int32_t getcorrectflorzofslope(int sectnum, int32_t dax, int32_t day)
return getflorzofslopeptr((usectorptr_t)&sector[sectnum], closest.x, closest.y);
}
// Is <wal> a red wall in a safe fashion, i.e. only if consistency invariant
// ".nextsector >= 0 iff .nextwall >= 0" holds.
inline int32_t redwallp(uwallptr_t wal)
{
return (wal->nextwall >= 0 && wal->nextsector >= 0);
}
inline int32_t E_SpriteIsValid(const int32_t i)
{
return ((unsigned)i < MAXSPRITES && sprite[i].statnum != MAXSTATUS);
}
void alignceilslope(int16_t dasect, int32_t x, int32_t y, int32_t z);
void alignflorslope(int16_t dasect, int32_t x, int32_t y, int32_t z);
void setslope(int32_t sectnum, int32_t cf, int16_t slope);

View file

@ -41,7 +41,7 @@ Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
template<> FSerializer& Serialize(FSerializer& arc, const char* key, Duke3d::DDukeActor*& ht, Duke3d::DDukeActor** def)
{
int index = ht? int(ht - Duke3d::hittype) : -1;
int index = ht? ht->GetSpriteIndex() : -1;
assert(index >= -1 && index < MAXSPRITES);
Serialize(arc, key, index, nullptr);
ht = index < 0? nullptr : &Duke3d::hittype[index];