an expansion mode to display pointer indices

This commit is contained in:
Zeno Rogue 2021-07-30 03:01:28 +02:00
parent ebfbc3d1c9
commit 6f9a784775
1 changed files with 5 additions and 2 deletions

View File

@ -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: ;
}