1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-31 01:19:03 +00:00

altmap relspin is now remembered in altmap::relspin

This commit is contained in:
Zeno Rogue
2021-07-29 12:46:47 +02:00
parent 2e47da5d2c
commit bac88ea9fd
2 changed files with 31 additions and 22 deletions

View File

@@ -94,6 +94,7 @@ struct hrmap_standard : hrmap {
virtual int shvid(cell *c) override;
virtual hyperpoint get_corner(cell *c, int cid, ld cf) override;
virtual transmatrix master_relative(cell *c, bool get_inverse) override;
virtual bool link_alt(heptagon *h, heptagon *alt, hstate firststate, int dir) override;
};
void clearfrom(heptagon*);
@@ -132,6 +133,11 @@ bool hrmap::link_alt(heptagon *h, heptagon *alt, hstate firststate, int dir) {
return true;
}
bool hrmap_standard::link_alt(heptagon *h, heptagon *alt, hstate firststate, int dir) {
altmap::relspin(alt) = 3;
return true;
}
void hrmap::virtualRebase(heptagon*& base, transmatrix& at) {
printf("virtualRebase called unexpectedly\n");
return;