From a782247eacfb0b2a787ad620dec55ee4395c8ee5 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 22 Jul 2017 04:00:30 +0000 Subject: [PATCH] inthi_rintf git-svn-id: https://svn.eduke32.com/eduke32@6378 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/a.h | 1 + source/build/src/engine.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/build/include/a.h b/source/build/include/a.h index b8c86d2c2..7c498fa91 100644 --- a/source/build/include/a.h +++ b/source/build/include/a.h @@ -25,6 +25,7 @@ typedef int64_t coord_t; // but where no other adverse effect (except being undefined behavior, // obviously) is expected to result: typedef int64_t inthi_t; +#define inthi_rintf llrintf #if !defined(NOASM) && (defined(_MSC_VER) || (defined(__GNUC__) && defined(__i386__))) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 56c1f0f74..b452a15a1 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -1865,7 +1865,7 @@ static WSHELPER_DECL void calc_vplcinc_wall(uint32_t *vplc, int32_t *vinc, inthi #ifdef HIGH_PRECISION_SPRITE static WSHELPER_DECL void calc_vplcinc_sprite(uint32_t *vplc, int32_t *vinc, int32_t x, int32_t y1v) { - inthi_t const tmpvinc = Blrintf(swallf[x]); + inthi_t const tmpvinc = inthi_rintf(swallf[x]); inthi_t const tmpvplc = globalzd + tmpvinc*(y1v-globalhoriz+1); *vinc = tmpvinc;