1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 09:17:57 +00:00

fixed bugs when switching FPP in E2 torus

This commit is contained in:
Zeno Rogue
2021-02-06 12:25:30 +01:00
parent c57566f9da
commit de498da1d1
4 changed files with 17 additions and 4 deletions

View File

@@ -130,6 +130,17 @@ EX namespace euc {
cell *camelot_center;
map<gp::loc, struct cdata> eucdata;
void compute_tmatrix() {
shifttable = get_shifttable();
tmatrix.resize(S7);
for(int i=0; i<S7; i++)
tmatrix[i] = eumove(shifttable[i]);
}
void on_dim_change() override {
compute_tmatrix();
}
vector<cell*> toruscells;
vector<cell*>& allcells() override {
@@ -144,10 +155,7 @@ EX namespace euc {
}
hrmap_euclidean() {
shifttable = get_shifttable();
tmatrix.resize(S7);
for(int i=0; i<S7; i++)
tmatrix[i] = eumove(shifttable[i]);
compute_tmatrix();
camelot_center = NULL;
build_torus3(geometry);
#if CAP_IRR