- removed the scripting wrappers for floorz and ceilingz.

These won't be needed anymore with floating point values
This commit is contained in:
Christoph Oelckers 2022-02-03 19:15:46 +01:00
parent 044929ad06
commit 367a998b40
2 changed files with 0 additions and 26 deletions

View file

@ -104,30 +104,6 @@ DEFINE_FIELD_X(tspritetype, tspritetype, time)
DEFINE_GLOBAL(wall)
DEFINE_GLOBAL(sector)
double sector_floorz(sectortype* sect)
{
if (!sect) ThrowAbortException(X_READ_NIL, nullptr);
return sect->int_floorz() * zinttoworld;
}
DEFINE_ACTION_FUNCTION_NATIVE(_sectortype, floorz, sector_floorz)
{
PARAM_SELF_STRUCT_PROLOGUE(sectortype);
ACTION_RETURN_FLOAT(sector_floorz(self));
}
double sector_ceilingz(sectortype* sect)
{
if (!sect) ThrowAbortException(X_READ_NIL, nullptr);
return sect->int_ceilingz() * zinttoworld;
}
DEFINE_ACTION_FUNCTION_NATIVE(_sectortype, ceilingz, sector_ceilingz)
{
PARAM_SELF_STRUCT_PROLOGUE(sectortype);
ACTION_RETURN_FLOAT(sector_ceilingz(self));
}
void sector_setfloorz(sectortype* sect, double val)
{
if (!sect) ThrowAbortException(X_READ_NIL, nullptr);

View file

@ -188,8 +188,6 @@ struct sectortype native
}
*/
native double floorz();
native double ceilingz();
native void setceilingz(double cc, bool temp = false);
native void setfloorz(double cc, bool temp = false);
native void addceilingz(double cc, bool temp = false);