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:
6
reg3.cpp
6
reg3.cpp
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user