1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

rogueviz::kohonen:: using manual_celllister instead of sval

This commit is contained in:
Zeno Rogue 2018-06-28 14:56:41 +02:00
parent b01cee20d5
commit 3701b23c43

View File

@ -287,15 +287,15 @@ struct cellcrawler {
vector<cellcrawlerdata> 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<isize(data); i++) {
cellwalker cw0 = data[i].orig;