From 003b0bf828408e8b95ccab404f0c7fca0d7de362 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 9 Oct 2023 08:19:23 +0200 Subject: a --- compat/assert.hpp | 4 ++-- src/point.cpp | 10 +++++----- 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; -- cgit v1.2.3