From ab47188b0a8cbeb02ef46a0adc93ea5e73315ee0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 10 May 2019 00:14:55 -0700 Subject: [PATCH] modules/console: More sounding output. --- modules/console.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/console.cc b/modules/console.cc index b805c01f3..e8a75cac3 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -7546,6 +7546,20 @@ console_cmd__room__sounding(opt &out, const string_view &line) m::twain(room) }; + const auto head + { + m::head_idx(room) + }; + + const auto create + { + m::room::index(room) + }; + + out << "head: " << std::setw(8) << surface.first + << " " << m::event_id(head) << " (" << head << ")" + << std::endl; + m::sounding(room, [&out] (const auto &range, const auto &event_idx) { @@ -7563,6 +7577,10 @@ console_cmd__room__sounding(opt &out, const string_view &line) << " " << m::event_id(surface.second) << " (" << surface.second << ")" << std::endl; + out << "create: " << std::setw(8) << create + << " " << m::event_id(create) << " (" << create << ")" + << std::endl; + return true; }