1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-14 12:47:10 +00:00

fake:: support Archimedean pure

This commit is contained in:
Zeno Rogue
2020-05-31 16:18:44 +02:00
parent b17c75ccec
commit 5238959cbd
7 changed files with 92 additions and 30 deletions

View File

@@ -511,7 +511,7 @@ void geometry_information::prepare_basics() {
}
s3 = S3;
if(fake::in()) s3 = fake::around;
if(fake::in() && !arcm::in()) s3 = fake::around;
beta = (S3 >= OINF && !fake::in()) ? 0 : 2*M_PI/s3;
@@ -589,10 +589,12 @@ void geometry_information::prepare_basics() {
#endif
#if CAP_ARCM
if(arcm::in()) {
arcm::current.compute_geometry();
crossf = hcrossf7 * arcm::current.scale();
hexvdist = arcm::current.scale() * .5;
rhexf = arcm::current.scale() * .5;
auto& ac = arcm::current_or_fake();
if(fake::in()) ac = arcm::current;
ac.compute_geometry();
crossf = hcrossf7 * ac.scale();
hexvdist = ac.scale() * .5;
rhexf = ac.scale() * .5;
}
#endif
#if CAP_BT