From 312f2c0a2a42c776863af69b7c4be55597287da4 Mon Sep 17 00:00:00 2001 From: jonas Date: Fri, 25 Jan 2019 17:04:57 +0100 Subject: c --- cRender.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cRender.cpp b/cRender.cpp index f563199..9fbdc8f 100644 --- a/cRender.cpp +++ b/cRender.cpp @@ -115,7 +115,7 @@ int cRender::drawLine(char _c, sPos _pos1, sPos _pos2, bool _overrideCollision, { drawPoint(_c, sPos{i + _pos1.x, (int)(i * fGradient + _pos1.y + 0.5)}, _overrideCollision, _color); //+0.5 for rounding error - if(abs(fGradient) > 1) + if(std::abs(fGradient) > 1.0) { int dy = (int)(((i + 1) * fGradient + _pos1.y + 0.5) - (i * fGradient + _pos1.y + 0.5)); -- cgit v1.2.3