1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-30 13:32:59 +00:00

twisted ray now takes angle_of_zero into account

This commit is contained in:
Zeno Rogue
2024-06-21 13:46:31 +02:00
parent 8a782d1e3a
commit 9349d08117
4 changed files with 48 additions and 23 deletions

View File

@@ -132,6 +132,8 @@ struct subcellshape {
vector<vector<char>> next_dir;
/** useful in product geometries */
vector<hyperpoint> walltester;
/** needed for twisted */
ld angle_of_zero;
/** compute all the properties based on `faces`, for the main heptagon cellshape */
void compute_hept();
@@ -168,8 +170,6 @@ struct geometry_information {
/** distance between hexagon vertex and hexagon center */
ld hexvdist;
ld unused_value_1; /* removed */
/** distance from heptagon center to heptagon vertex (either hexf or hcrossf) */
ld rhexf;
@@ -371,6 +371,7 @@ hpcshape
vector<hyperpoint> walltester;
vector<int> wallstart;
vector<ld> angle_of_zero; /* needed for twisted, especially Archimedean */
vector<transmatrix> raywall;
vector<struct plain_floorshape*> all_plain_floorshapes;