mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-22 02:42:49 +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;
|
eDistanceFrom distance_from = dfPlayer;
|
||||||
|
|
||||||
enum eNumberCoding { ncNone, ncDistance, ncType, ncDebug };
|
enum eNumberCoding { ncNone, ncDistance, ncType, ncDebug, ncError };
|
||||||
EX string ncnames[4] = { "NO", "distance", "type", "debug" };
|
EX string ncnames[5] = { "NO", "distance", "type", "debug", "error" };
|
||||||
eNumberCoding number_coding = ncDistance;
|
eNumberCoding number_coding = ncDistance;
|
||||||
|
|
||||||
bool mod_allowed() {
|
bool mod_allowed() {
|
||||||
@ -607,6 +607,9 @@ void celldrawer::do_viewdist() {
|
|||||||
dc = (d != cd) ? 0xFF0000 : 0x00FF00;
|
dc = (d != cd) ? 0xFF0000 : 0x00FF00;
|
||||||
label = its(d);
|
label = its(d);
|
||||||
}
|
}
|
||||||
|
case ncError: {
|
||||||
|
if(pointer_indices.count(c)) label = index_pointer(c);
|
||||||
|
}
|
||||||
case ncNone: ;
|
case ncNone: ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user