1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-28 06:39:55 +00:00

fixed wrong infinity used

This commit is contained in:
Zeno Rogue 2018-09-14 01:36:58 +02:00
parent a556ef0823
commit 2762b1197c

View File

@ -3668,11 +3668,11 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
int cd = int cd =
among(expansion_method, 1, 2) ? celldistance(c, cwt.at) : among(expansion_method, 1, 2) ? celldistance(c, cwt.at) :
(cwt.at == currentmap->gamestart() && numplayers() == 1 && !binarytiling) ? celldist(c) : (cwt.at == currentmap->gamestart() && numplayers() == 1 && !binarytiling) ? celldist(c) :
(c->cpdist < INF) ? c->cpdist : (c->cpdist < INFD) ? c->cpdist :
celldistance(c, cwt.at); celldistance(c, cwt.at);
string label = its(cd); string label = its(cd);
if(c->cpdist < INF && show_ea_types) { if(c->cpdist < INFD && show_ea_types) {
int t = type_in_quick(expansion, c, [] (cell *c) { return c->cpdist; }); int t = type_in_quick(expansion, c, [] (cell *c) { return c->cpdist; });
if(t >= 0) if(t >= 0)
label = label + ":" + its(t); label = label + ":" + its(t);