From 7d461fa76850a693429f4421d7392cb8251a5f9f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 27 Jan 2022 18:50:05 +0100 Subject: [PATCH] - PlanesAtPointf --- source/core/gamefuncs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/core/gamefuncs.h b/source/core/gamefuncs.h index ec6d03e94c6..80848a21911 100644 --- a/source/core/gamefuncs.h +++ b/source/core/gamefuncs.h @@ -157,6 +157,10 @@ void loaddefinitionsfile(const char* fn, bool cumulative = false, bool maingrp = bool calcChaseCamPos(int* px, int* py, int* pz, DCoreActor* pspr, sectortype** psectnum, binangle ang, fixedhoriz horiz, double const smoothratio); void PlanesAtPoint(const sectortype* sec, float dax, float day, float* ceilz, float* florz); +inline void PlanesAtPointf(const sectortype* sec, float dax, float day, float* ceilz, float* florz) +{ + PlanesAtPoint(sec, dax * worldtomap, day * worldtomap, ceilz, florz); +} int getslopeval(sectortype* sect, int x, int y, int z, int planez);