From b641456152e1b80f464ba67551eb52aba2448109 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 30 Jan 2022 13:12:31 +0100 Subject: [PATCH] - use floats directly for WallStart/End/X/Y. --- source/core/gamefuncs.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/core/gamefuncs.h b/source/core/gamefuncs.h index af0dd17f2..1de541ad0 100644 --- a/source/core/gamefuncs.h +++ b/source/core/gamefuncs.h @@ -189,32 +189,32 @@ inline double RenderY(int y) inline double WallStartX(int wallnum) { - return wall[wallnum].wall_int_pos().X * (1 / 16.); + return wall[wallnum].pos.X; } inline double WallStartY(int wallnum) { - return wall[wallnum].wall_int_pos().Y * (1 / -16.); + return -wall[wallnum].pos.Y; } inline double WallEndX(int wallnum) { - return wall[wallnum].point2Wall()->wall_int_pos().X * (1 / 16.); + return wall[wallnum].point2Wall()->pos.X; } inline double WallEndY(int wallnum) { - return wall[wallnum].point2Wall()->wall_int_pos().Y * (1 / -16.); + return -wall[wallnum].point2Wall()->pos.Y; } inline double WallStartX(const walltype* wallnum) { - return wallnum->wall_int_pos().X * (1 / 16.); + return wallnum->pos.X; } inline double WallStartY(const walltype* wallnum) { - return wallnum->wall_int_pos().Y * (1 / -16.); + return -wallnum->pos.Y; } inline DVector2 WallStart(const walltype* wallnum) @@ -224,12 +224,12 @@ inline DVector2 WallStart(const walltype* wallnum) inline double WallEndX(const walltype* wallnum) { - return wallnum->point2Wall()->wall_int_pos().X * (1 / 16.); + return wallnum->point2Wall()->pos.X; } inline double WallEndY(const walltype* wallnum) { - return wallnum->point2Wall()->wall_int_pos().Y * (1 / -16.); + return -wallnum->point2Wall()->pos.Y; } inline DVector2 WallEnd(const walltype* wallnum)