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/Tracer.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 'src/Tracer.cpp')
-rw-r--r-- | src/Tracer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Tracer.cpp b/src/Tracer.cpp index 756147a7b..8ccd18071 100644 --- a/src/Tracer.cpp +++ b/src/Tracer.cpp @@ -250,7 +250,7 @@ int LinesCross(float x0, float y0, float x1, float y1, float x2, float y2, float // float linx, liny; float d=(x1-x0)*(y3-y2)-(y1-y0)*(x3-x2); - if (abs(d)<0.001) {return 0;} + if (std::abs(d)<0.001) {return 0;} float AB=((y0-y2)*(x3-x2)-(x0-x2)*(y3-y2))/d; if (AB>=0.0 && AB<=1.0) { |