rug now works correctly with distance > 7

This commit is contained in:
Zeno Rogue 2018-01-29 16:30:44 +01:00
parent 5f3c45df8d
commit cd988324a0
1 changed files with 2 additions and 2 deletions

View File

@ -578,8 +578,8 @@ void buildRug() {
map<cell*, rugpoint *> vptr;
for(cell *c: cl.lst)
vptr[c] = addRugpoint(shmup::ggmatrix(c)*C0, c->cpdist);
for(int i=0; i<size(cl.lst); i++)
vptr[cl.lst[i]] = addRugpoint(shmup::ggmatrix(cl.lst[i])*C0, cl.dists[i]);
for(auto& p: vptr) {
cell *c = p.first;