1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-19 10:19:36 +00:00

fixed ref to jmap in rogueviz/rewriting

This commit is contained in:
Zeno Rogue 2024-06-16 16:59:15 +02:00
parent 75a82fab1f
commit 7dbbbb2dd9

View File

@ -103,12 +103,14 @@ struct hrmap_rewrite : hrmap_hyperbolic {
};
colortable labels = {0x100FFFF, 0x100FF00, 0x1FFFF00, 0x1FF8000, 0x1FF0000, 0x1FF00FF};
bool labeller(cell* c, const shiftmatrix& V) {
auto m = dynamic_cast<hrmap_rewrite*> (currentmap);
if(m) {
string s = m->asg[c->master].second;
cgi.scalefactor = 1;
queuestr(V, 0.5, s, ccolor::jmap.ctab[c->master->distance+1]);
queuestr(V, 0.5, s, labels[c->master->distance+1]);
}
return false;
}