summaryrefslogtreecommitdiffstats
path: root/src/LineBlockTracer.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2014-09-22 14:33:41 +0200
committerAlexander Harkness <me@bearbin.net>2014-09-22 14:33:41 +0200
commitb9b45e82876caf51cf486b72c811aa49ef67b1ed (patch)
treee39037971290a1b9fa6343c0c8f846541096d435 /src/LineBlockTracer.cpp
parentQtBiomeVisualiser: Added the base for INI editting. (diff)
parentMade it compile with clang (diff)
downloadcuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.gz
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.bz2
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.lz
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.xz
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.zst
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.zip
Diffstat (limited to '')
-rw-r--r--src/LineBlockTracer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LineBlockTracer.cpp b/src/LineBlockTracer.cpp
index 71b8334fa..1b42081c2 100644
--- a/src/LineBlockTracer.cpp
+++ b/src/LineBlockTracer.cpp
@@ -146,7 +146,7 @@ bool cLineBlockTracer::MoveToNextBlock(void)
dirY,
dirZ,
} Direction = dirNONE;
- if (abs(m_DiffX) > EPS)
+ if (std::abs(m_DiffX) > EPS)
{
double DestX = (m_DirX > 0) ? (m_CurrentX + 1) : m_CurrentX;
Coeff = (DestX - m_StartX) / m_DiffX;
@@ -155,7 +155,7 @@ bool cLineBlockTracer::MoveToNextBlock(void)
Direction = dirX;
}
}
- if (abs(m_DiffY) > EPS)
+ if (std::abs(m_DiffY) > EPS)
{
double DestY = (m_DirY > 0) ? (m_CurrentY + 1) : m_CurrentY;
double CoeffY = (DestY - m_StartY) / m_DiffY;
@@ -165,7 +165,7 @@ bool cLineBlockTracer::MoveToNextBlock(void)
Direction = dirY;
}
}
- if (abs(m_DiffZ) > EPS)
+ if (std::abs(m_DiffZ) > EPS)
{
double DestZ = (m_DirZ > 0) ? (m_CurrentZ + 1) : m_CurrentZ;
double CoeffZ = (DestZ - m_StartZ) / m_DiffZ;