From 3701b23c43dc887e0b90794896423b61ce78982d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 28 Jun 2018 14:56:41 +0200 Subject: [PATCH] rogueviz::kohonen:: using manual_celllister instead of sval --- rogueviz-kohonen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rogueviz-kohonen.cpp b/rogueviz-kohonen.cpp index 404927be..0329dde8 100644 --- a/rogueviz-kohonen.cpp +++ b/rogueviz-kohonen.cpp @@ -287,15 +287,15 @@ struct cellcrawler { vector data; - void store(const cellwalker& o, int from, int spin) { - if(eq(o.c->aitmp, sval)) return; - o.c->aitmp = sval; + void store(const cellwalker& o, int from, int spin, manual_celllister& cl) { + if(!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); for(int i=0; i