mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-14 23:03:16 +00:00
an expansion mode to display pointer indices
This commit is contained in:
parent
ebfbc3d1c9
commit
6f9a784775
@ -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: ;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user