diff options
author | Alexander Harkness <me@bearbin.net> | 2014-09-22 14:33:41 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2014-09-22 14:33:41 +0200 |
commit | b9b45e82876caf51cf486b72c811aa49ef67b1ed (patch) | |
tree | e39037971290a1b9fa6343c0c8f846541096d435 /src/LineBlockTracer.cpp | |
parent | QtBiomeVisualiser: Added the base for INI editting. (diff) | |
parent | Made it compile with clang (diff) | |
download | cuberite-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.cpp | 6 |
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; |