From 1a53efb2b5507d6cd9a0a93f5fb55520677ebf77 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 27 Jan 2026 10:23:01 +0100 Subject: [PATCH] dhrg:: support tallying other edges --- rogueviz/dhrg/loglik.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rogueviz/dhrg/loglik.cpp b/rogueviz/dhrg/loglik.cpp index 0736935b..288c6a05 100644 --- a/rogueviz/dhrg/loglik.cpp +++ b/rogueviz/dhrg/loglik.cpp @@ -5,13 +5,14 @@ namespace dhrg { // tally edges of the given vertex at the given index int edgetally[MAXDIST]; +int *whichedgetally = edgetally; void tallyedgesof(int i, int delta, mycell *mc) { using namespace rogueviz; for(auto p: vdata[i].edges) { int j = p.second->i ^ p.second->j ^ i; if(j==i) printf("LOOP!\n"); - edgetally[quickdist(mc, vertices[j], 0)] += delta; + whichedgetally[quickdist(mc, vertices[j], 0)] += delta; } }