mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-18 15:12:29 +00:00
SLR works with Archimedean
This commit is contained in:
+11
-3
@@ -576,9 +576,17 @@ void geometry_information::prepare_basics() {
|
||||
steps = 0;
|
||||
single_step = 1;
|
||||
if(sl2) {
|
||||
single_step = S3 * S7 - 2 * S7 - 2 * S3;
|
||||
steps = 2 * S7;
|
||||
if(BITRUNCATED) steps *= S3;
|
||||
if(hybrid::underlying == gArchimedean) {
|
||||
ld s = arcm::current.euclidean_angle_sum - 2;
|
||||
single_step = 2;
|
||||
DEBB(DF_GEOM | DF_POLY, ("1/s = ", 1/s));
|
||||
steps = 4/s + .5;
|
||||
}
|
||||
else {
|
||||
single_step = S3 * S7 - 2 * S7 - 2 * S3;
|
||||
steps = 2 * S7;
|
||||
if(BITRUNCATED) steps *= S3;
|
||||
}
|
||||
DEBB(DF_GEOM | DF_POLY, ("steps = ", steps, " / ", single_step));
|
||||
plevel = M_PI * single_step / steps;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user