1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-31 15:00:17 +00:00

refactored master_relative as virtual function

This commit is contained in:
Zeno Rogue
2021-07-09 10:10:13 +02:00
parent 9a319e2d2a
commit b6bf0911f3
3 changed files with 17 additions and 7 deletions

View File

@@ -657,6 +657,12 @@ EX namespace reg3 {
int id = local_id[c].second;
return cgi.subshapes[id].vertices_only_local;
}
transmatrix master_relative(cell *c, bool get_inverse) {
int id = local_id[c].second;
auto& ss = cgi.subshapes[id];
return get_inverse ? ss.from_cellcenter : ss.to_cellcenter;
}
void make_subconnections();