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

ads-game:: cleanup nomap

This commit is contained in:
Zeno Rogue 2022-10-15 14:24:56 +02:00
parent 0ddc6c722f
commit 5423eebc2d
2 changed files with 2 additions and 6 deletions

View File

@ -130,7 +130,6 @@ void set_config() {
nohelp = true; nohelp = true;
nomenukey = true; nomenukey = true;
nomap = true;
no_find_player = true; no_find_player = true;
showstartmenu = false; showstartmenu = false;
} }

View File

@ -45,18 +45,15 @@ void switch_underlying() {
initcells(); initcells();
initgame(); initgame();
nomap = false;
models::desitter_projections = true; models::desitter_projections = true;
} }
else if(hyperbolic) { else if(hyperbolic) {
nomap = true;
geometry = gSphere; geometry = gSphere;
variation = eVariation::bitruncated; variation = eVariation::bitruncated;
swap(currentmap, map_hyp); swap(currentmap, map_hyp);
pmodel = mdDisk; pmodel = mdDisk;
check_cgi(); check_cgi();
nomap = true;
} }
} }
@ -68,7 +65,6 @@ void switch_underlying() {
hybrid::switch_to_actual(); hybrid::switch_to_actual();
pmodel = mdRelPerspective; pmodel = mdRelPerspective;
hyperpoint res; hyperpoint res;
nomap = false;
nonisotropic_weird_transforms = true; nonisotropic_weird_transforms = true;
NLP = Id; NLP = Id;
Duality = Id; Duality = Id;
@ -78,7 +74,6 @@ void switch_underlying() {
else if(hybri) { else if(hybri) {
hybrid::switch_to_underlying(); hybrid::switch_to_underlying();
pmodel = mdDisk; pmodel = mdDisk;
nomap = true;
} }
cgi.use_count++; cgi.use_count++;
} }
@ -104,6 +99,8 @@ bool ads_draw_cell(cell *c, const shiftmatrix& V) {
} }
void replay_animation() { void replay_animation() {
nomap = main_rock ? (!hyperbolic || among(pmodel, mdRelPerspective, mdRelOrthogonal)) : !sl2;
if(in_replay) { if(in_replay) {
view_pt = (ticks / 1000.) * DS_(simspeed); view_pt = (ticks / 1000.) * DS_(simspeed);
ld maxt = history.back().start + 0.001; ld maxt = history.back().start + 0.001;