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;