1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

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

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;