mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-24 05:17:17 +00:00
ascii: fixed compasses
This commit is contained in:
parent
40b1e7bab1
commit
2db7dc4b6b
15
graph.cpp
15
graph.cpp
@ -5150,9 +5150,22 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
||||
|
||||
int icol = 0, moncol = 0xFF00FF;
|
||||
|
||||
if(it)
|
||||
if(it) {
|
||||
ch = iinf[it].glyph, asciicol = icol = iinf[it].color;
|
||||
|
||||
if(it == itCompass && isPlayerOn(c)) {
|
||||
cell *c1 = c ? findcompass(c) : NULL;
|
||||
if(c1) {
|
||||
transmatrix P = ggmatrix(c1);
|
||||
hyperpoint P1 = tC0(P);
|
||||
|
||||
queuechr(P1, 2*vid.fsize, 'X', 0x10100 * int(128 + 100 * sintick(150)));
|
||||
queuestr(P1, vid.fsize, its(-compassDist(c)), 0x10101 * int(128 - 100 * sintick(150)));
|
||||
addauraspecial(P1, 0xFF0000, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(c->monst) {
|
||||
ch = minf[c->monst].glyph, moncol = minf[c->monst].color;
|
||||
if(c->monst == moMutant) {
|
||||
|
Loading…
Reference in New Issue
Block a user