1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-26 07:03:19 +00:00

racing:: do not show X if invalid point

This commit is contained in:
Zeno Rogue 2018-12-04 22:41:05 +01:00
parent 4a308792a1
commit 7291b0d7be

View File

@ -848,6 +848,7 @@ void markers() {
cell *goal = NULL; cell *goal = NULL;
for(cell *c: track) if(inscreenrange(c)) goal = c; for(cell *c: track) if(inscreenrange(c)) goal = c;
hyperpoint H = tC0(ggmatrix(goal)); hyperpoint H = tC0(ggmatrix(goal));
if(invalid_point(H)) return;
queuechr(H, 2*vid.fsize, 'X', 0x10100 * int(128 + 100 * sintick(150))); queuechr(H, 2*vid.fsize, 'X', 0x10100 * int(128 + 100 * sintick(150)));
queuestr(H, vid.fsize, queuestr(H, vid.fsize,
(geometry == gCrystal && !crystal::pure()) ? fts(crystal::space_distance(cwt.at, track.back())) : (geometry == gCrystal && !crystal::pure()) ? fts(crystal::space_distance(cwt.at, track.back())) :