From e3d5397d7e4d6540e2bc39ebdb304dec408bf010 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 4 Feb 2022 00:37:59 +0100 Subject: [PATCH] - floating point getslope functions. # Conflicts: # source/build/include/build.h --- source/core/gamefuncs.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/core/gamefuncs.h b/source/core/gamefuncs.h index 194b0c6f2..2cbc63bc2 100644 --- a/source/core/gamefuncs.h +++ b/source/core/gamefuncs.h @@ -180,6 +180,21 @@ int getflorzofslopeptr(const sectortype* sec, int dax, int day); void getzsofslopeptr(const sectortype* sec, int dax, int day, int* ceilz, int* florz); void getzsofslopeptr(const sectortype* sec, double dax, double day, double* ceilz, double* florz); +inline double getceilzofslopeptrf(const sectortype* sec, double dax, double day) +{ + return getceilzofslopeptr(sec, dax * worldtoint, day * worldtoint) * zinttoworld; +} +inline double getflorzofslopeptrf(const sectortype* sec, double dax, double day) +{ + return getflorzofslopeptr(sec, dax * worldtoint, day * worldtoint) * zinttoworld; +} +[[deprecated]] +inline void getzsofslopeptrf(const sectortype* sec, double dax, double day, double* ceilz, double* florz) +{ + getzsofslopeptr(sec, dax, day, ceilz, florz); +} + + enum EFindNextSector { Find_Floor = 0,