From 2762b1197ce0f33bb0a1d792066fee5eb3475470 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 14 Sep 2018 01:36:58 +0200 Subject: [PATCH] fixed wrong infinity used --- graph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index 58bcea3c..fe1c1850 100644 --- a/graph.cpp +++ b/graph.cpp @@ -3668,11 +3668,11 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { int cd = among(expansion_method, 1, 2) ? celldistance(c, cwt.at) : (cwt.at == currentmap->gamestart() && numplayers() == 1 && !binarytiling) ? celldist(c) : - (c->cpdist < INF) ? c->cpdist : + (c->cpdist < INFD) ? c->cpdist : celldistance(c, cwt.at); 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; }); if(t >= 0) label = label + ":" + its(t);