1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-26 03:17:39 +00:00

rogueviz::dhrg:: export some functions

This commit is contained in:
Zeno Rogue
2022-07-23 15:45:42 +02:00
parent 67267cbe6b
commit e9bb38d3b1
2 changed files with 20 additions and 6 deletions

View File

@@ -79,4 +79,14 @@ namespace dhrg {
if(doStore) rogueviz::storeall();
}
void unsnap() {
for(int i=0; i<N; i++) {
using rogueviz::vdata;
transmatrix h = spin(coords[i].second * degree) * xpush(coords[i].first);
vdata[i].m->base = currentmap->gamestart();
vdata[i].m->at = h;
virtualRebase(vdata[i].m);
}
fixedges();
}
}