mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
rug now works correctly with distance > 7
This commit is contained in:
parent
5f3c45df8d
commit
cd988324a0
4
rug.cpp
4
rug.cpp
@ -578,8 +578,8 @@ void buildRug() {
|
|||||||
|
|
||||||
map<cell*, rugpoint *> vptr;
|
map<cell*, rugpoint *> vptr;
|
||||||
|
|
||||||
for(cell *c: cl.lst)
|
for(int i=0; i<size(cl.lst); i++)
|
||||||
vptr[c] = addRugpoint(shmup::ggmatrix(c)*C0, c->cpdist);
|
vptr[cl.lst[i]] = addRugpoint(shmup::ggmatrix(cl.lst[i])*C0, cl.dists[i]);
|
||||||
|
|
||||||
for(auto& p: vptr) {
|
for(auto& p: vptr) {
|
||||||
cell *c = p.first;
|
cell *c = p.first;
|
||||||
|
Loading…
Reference in New Issue
Block a user