mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- replaced all remaining read access to __int_floorz and __int_ceilingz with wrappers.
This commit is contained in:
parent
47a594a96c
commit
044929ad06
7 changed files with 17 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue