improvements in expansion

This commit is contained in:
Zeno Rogue committed 2018-09-13 20:38:06 +02:00
1 parent ecf351e16a
commit a556ef0823
4 files changed
+221 -24

No files matched your search

+12 -1
View File
@@ -3665,8 +3665,19 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
}
if(viewdists && !behindsphere(V)) {
int cd = (cwt.at == currentmap->gamestart() && numplayers() == 1) ? celldist(c) : celldistance(c, cwt.at);
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 :
celldistance(c, cwt.at);
string label = its(cd);
if(c->cpdist < INF && show_ea_types) {
int t = type_in_quick(expansion, c, [] (cell *c) { return c->cpdist; });
if(t >= 0)
label = label + ":" + its(t);
}
// string label = its(fieldpattern::getriverdistleft(c)) + its(fieldpattern::getriverdistright(c));
int dc = distcolors[cd&7];
wcol = gradient(wcol, dc, 0, .4, 1);