aboutsummaryrefslogtreecommitdiff
path: root/cRender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cRender.cpp')
-rw-r--r--cRender.cpp2
1 files changed, 1 insertions, 1 deletions
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));