From f1f1098d956d806da4d197bc8f6715583a024cdf Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 29 Jun 2018 12:16:35 +0200 Subject: [PATCH] removed some remaining references to sval, fixed the compilation of RogueViz --- conformal.cpp | 1 - game.cpp | 2 -- mapeditor.cpp | 2 +- rogueviz-kohonen.cpp | 7 +++---- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/conformal.cpp b/conformal.cpp index 0978b93c..b56fa122 100644 --- a/conformal.cpp +++ b/conformal.cpp @@ -831,7 +831,6 @@ namespace conformal { infindhistory.clear(); for(int i=0; i > spill_list; void list_spill(cellwalker tgt, cellwalker src, manual_celllister& cl) { - spill_list.clear(); sval++; + spill_list.clear(); spill_list.emplace_back(tgt, src); int crad = 0, nextstepat = 0; for(int i=0; i data; void store(const cellwalker& o, int from, int spin, manual_celllister& cl) { - if(!add(o.c)) return; + if(!cl.add(o.c)) return; data.emplace_back(o, from, spin); } void build(const cellwalker& start) { - sval++; data.clear(); manual_celllister cl; - store(start, 0, 0); + store(start, 0, 0, cl); for(int i=0; itype; j++) { cellwalker cw = cw0 + j + wstep; if(!getNeuron(cw.c)) continue; - store(cw, i, j); + store(cw, i, j, cl); } } if(gaussian) for(cellcrawlerdata& s: data)