summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--compat/assert.hpp4
-rw-r--r--src/point.cpp10
2 files changed, 7 insertions, 7 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp
index d9ff2cbe..6e7ef5c0 100644
--- a/compat/assert.hpp
+++ b/compat/assert.hpp
@@ -92,8 +92,8 @@
{ \
if (a != b) [[unlikely]] \
{ \
- DBG_nospace << "fatal: '" << a << "' != '" << b \
- << "' in " << __FILE__ << ":" << __LINE__; \
+ DBG_nospace << "fatal: " << a << " != " << b \
+ << " in " << __FILE__ << ":" << __LINE__; \
fm_EMIT_ABORT(); \
} \
})(__VA_ARGS__)
diff --git a/src/point.cpp b/src/point.cpp
index 23049a14..55785a61 100644
--- a/src/point.cpp
+++ b/src/point.cpp
@@ -9,12 +9,12 @@ Debug& operator<<(Debug& dbg, const point& pt)
auto c = Vector3i(chunk_coords_{pt.coord});
auto t = Vector2i(pt.coord.local());
+ auto o = pt.offset;
- dbg << "point( ";
- dbg << c << ", ";
- dbg << t << ", ";
- dbg << pt.offset;
- dbg << " )";
+ dbg << "point{";
+ dbg << "{" << c.x() << "," << c.y() << "," << c.z() << "},";
+ dbg << "{" << t.x() << "," << t.y() << "},";
+ dbg << "{" << o.x() << "," << o.y() << "}}";
dbg.setFlags(flags);
return dbg;