From 9ce30d7963dc8a9911cb4bf39fafbdb2c75bf5be Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 24 Sep 2022 21:36:38 +0200 Subject: [PATCH] - deleted the unused integer rotatepoint function. --- source/build/include/build.h | 6 ------ source/build/src/engine.cpp | 15 --------------- 2 files changed, 21 deletions(-) diff --git a/source/build/include/build.h b/source/build/include/build.h index 93341ea9b..4ff7da8f5 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -213,12 +213,6 @@ inline constexpr uint32_t uhypsq(int32_t const dx, int32_t const dy) return (uint32_t)dx*dx + (uint32_t)dy*dy; } -int32_t lintersect(int32_t originX, int32_t originY, int32_t originZ, - int32_t destX, int32_t destY, int32_t destZ, - int32_t lineStartX, int32_t lineStartY, int32_t lineEndX, int32_t lineEndY, - int32_t *intersectionX, int32_t *intersectionY, int32_t *intersectionZ); - - EXTERN_CVAR(Bool, hw_hightile) EXTERN_CVAR(Bool, hw_models) EXTERN_CVAR(Float, gl_texture_filter_anisotropic) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 4d214f796..b46cf1499 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -138,21 +138,6 @@ void neartag(const vec3_t& sv, sectortype* sect, int ange, HitInfoBase& result, } } - - -// -// rotatepoint -// -void rotatepoint(vec2_t const pivot, vec2_t p, int16_t const daang, vec2_t * const p2) -{ - int const dacos = bcos(daang); - int const dasin = bsin(daang); - p.X -= pivot.X; - p.Y -= pivot.Y; - p2->X = DMulScale(p.X, dacos, -p.Y, dasin, 14) + pivot.X; - p2->Y = DMulScale(p.Y, dacos, p.X, dasin, 14) + pivot.Y; -} - int tilehasmodelorvoxel(int const tilenume, int pal) { return