1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

fake:: multiple done correctly

This commit is contained in:
Zeno Rogue 2020-05-16 02:13:10 +02:00
parent 3e7f4374a6
commit c6527f4b87

View File

@ -8,6 +8,8 @@ EX namespace fake {
EX ld scale;
EX bool multiple;
EX eGeometry underlying;
EX geometry_information *underlying_cgip;
EX hrmap *pmap;
@ -147,11 +149,9 @@ EX namespace fake {
return;
}
bool bymatrix = true;
dq::visited_c.clear();
dq::visited_by_matrix.clear();
auto enqueue = (bymatrix ? dq::enqueue_by_matrix_c : dq::enqueue_c);
auto enqueue = (multiple ? dq::enqueue_by_matrix_c : dq::enqueue_c);
enqueue(centerover, cview());
while(!dq::drawqueue_c.empty()) {
@ -285,6 +285,11 @@ EX void compute_scale() {
if(abs(good - around) < 1e-6) good = around;
multiple = false;
for(int k=1; k<10; k++)
if(abs(around - underlying_cgip->loop) < 1e-6)
multiple = true;
if(around == good) {
ginf[gFake].g = WDIM == 3 ? giEuclid3 : giEuclid2;
}