1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-27 13:13:16 +00:00

rogueviz::flocking:: using virtualRebase to make zebra quotient work

This commit is contained in:
Zeno Rogue 2018-11-18 17:51:23 +01:00
parent be3a464527
commit 624a6bca3b

View File

@ -111,6 +111,8 @@ namespace flocking {
monsat[m->base].push_back(m); monsat[m->base].push_back(m);
} }
for(cell *c: currentmap->allcells()) ggmatrix(c);
lines.clear(); lines.clear();
for(int i=0; i<N; i++) { for(int i=0; i<N; i++) {
@ -184,6 +186,7 @@ namespace flocking {
vertexdata& vd = vdata[i]; vertexdata& vd = vdata[i];
auto m = vd.m; auto m = vd.m;
m->rebasePat(pats[i]); m->rebasePat(pats[i]);
virtualRebase(m, true);
m->vel = vels[i]; m->vel = vels[i];
} }
shmup::fixStorage(); shmup::fixStorage();