mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-22 09:27:40 +00:00
general non-special-floor cleanup; standard and full floors are now perfect in gp
This commit is contained in:
@@ -445,9 +445,8 @@ namespace gp {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hyperpoint get_corner_position(cell *c, int cid, ld cf = 3) {
|
||||
auto li = get_local_info(c);
|
||||
|
||||
hyperpoint get_corner_position(const local_info& li, int cid, ld cf = 3) {
|
||||
int i = li.last_dir;
|
||||
if(i == -1)
|
||||
return atz(dir_matrix(cid), corners, li.relative, 0, cf);
|
||||
@@ -456,6 +455,10 @@ namespace gp {
|
||||
return inverse(cellmatrix) * atz(dir_matrix(i), corners, li.relative, fix6(cid + li.total_dir), cf);
|
||||
}
|
||||
}
|
||||
|
||||
hyperpoint get_corner_position(cell *c, int cid, ld cf = 3) {
|
||||
return get_corner_position(get_local_info(c), cid, cf);
|
||||
}
|
||||
|
||||
map<pair<int, int>, loc> center_locs;
|
||||
|
||||
|
Reference in New Issue
Block a user