- replaced all remaining read access to __int_floorz and __int_ceilingz with wrappers.

This commit is contained in:
Christoph Oelckers 2022-08-27 10:13:15 +02:00
parent 47a594a96c
commit 044929ad06
7 changed files with 17 additions and 17 deletions

View file

@ -107,25 +107,25 @@ DEFINE_GLOBAL(sector)
double sector_floorz(sectortype* sect)
{
if (!sect) ThrowAbortException(X_READ_NIL, nullptr);
return sect->__int_floorz * zinttoworld;
return sect->int_floorz() * zinttoworld;
}
DEFINE_ACTION_FUNCTION_NATIVE(_sectortype, floorz, sector_floorz)
{
PARAM_SELF_STRUCT_PROLOGUE(sectortype);
ACTION_RETURN_FLOAT(self->__int_floorz * zinttoworld);
ACTION_RETURN_FLOAT(sector_floorz(self));
}
double sector_ceilingz(sectortype* sect)
{
if (!sect) ThrowAbortException(X_READ_NIL, nullptr);
return sect->__int_ceilingz * zinttoworld;
return sect->int_ceilingz() * zinttoworld;
}
DEFINE_ACTION_FUNCTION_NATIVE(_sectortype, ceilingz, sector_ceilingz)
{
PARAM_SELF_STRUCT_PROLOGUE(sectortype);
ACTION_RETURN_FLOAT(self->__int_ceilingz * zinttoworld);
ACTION_RETURN_FLOAT(sector_ceilingz(self));
}
void sector_setfloorz(sectortype* sect, double val)