From b8a1826e76212faac9f08c4c44951af650b4de06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sat, 22 Sep 2018 19:09:10 +0200 Subject: [PATCH] Change data types --- raycastlib.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/raycastlib.h b/raycastlib.h index 8b20fa9..df79fef 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -1239,11 +1239,11 @@ void _RCL_columnFunctionComplex(RCL_HitResult *hits, uint16_t hitCount, uint16_t void _RCL_columnFunctionSimple(RCL_HitResult *hits, uint16_t hitCount, uint16_t x, RCL_Ray ray) { - int16_t y = 0; - int16_t wallHeightScreen = 0; - int16_t wallStart = _RCL_middleRow; - int16_t wallEnd = _RCL_middleRow; - int16_t heightOffset = 0; + RCL_Unit y = 0; + RCL_Unit wallHeightScreen = 0; + RCL_Unit wallStart = _RCL_middleRow; + RCL_Unit wallEnd = _RCL_middleRow; + RCL_Unit heightOffset = 0; RCL_Unit dist = 1;