From 6f9a784775f692e77c34e240b6aed4abbf689553 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 30 Jul 2021 03:01:28 +0200 Subject: [PATCH] an expansion mode to display pointer indices --- expansion.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/expansion.cpp b/expansion.cpp index e4a07afe..ac1cf7ba 100644 --- a/expansion.cpp +++ b/expansion.cpp @@ -423,8 +423,8 @@ EX string dfnames[3] = { "player", "start", "land" }; eDistanceFrom distance_from = dfPlayer; -enum eNumberCoding { ncNone, ncDistance, ncType, ncDebug }; -EX string ncnames[4] = { "NO", "distance", "type", "debug" }; +enum eNumberCoding { ncNone, ncDistance, ncType, ncDebug, ncError }; +EX string ncnames[5] = { "NO", "distance", "type", "debug", "error" }; eNumberCoding number_coding = ncDistance; bool mod_allowed() { @@ -607,6 +607,9 @@ void celldrawer::do_viewdist() { dc = (d != cd) ? 0xFF0000 : 0x00FF00; label = its(d); } + case ncError: { + if(pointer_indices.count(c)) label = index_pointer(c); + } case ncNone: ; }