mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
rogueviz::kohonen:: using manual_celllister instead of sval
This commit is contained in:
parent
b01cee20d5
commit
3701b23c43
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user