1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-28 03:21:23 +00:00

product:: selectable from menu

This commit is contained in:
Zeno Rogue
2019-08-18 23:12:36 +02:00
parent 14b70224a8
commit 1a1725dec8
4 changed files with 23 additions and 10 deletions

View File

@@ -1158,6 +1158,7 @@ EX void set_geometry(eGeometry target) {
int old_DIM = GDIM;
stop_game();
ors::reset();
if(target == gProduct) product::configure();
geometry = target;
if(chaosmode && bounded) chaosmode = false;
@@ -1180,12 +1181,13 @@ EX void set_geometry(eGeometry target) {
if(DUAL && geometry != gArchimedean)
variation = ginf[geometry].default_variation;
#if CAP_BT
if(binarytiling || WDIM == 3 || penrose) variation = eVariation::pure;
if(binarytiling || WDIM == 3 || penrose) if(!prod) variation = eVariation::pure;
#endif
if(GDIM == 3 && old_DIM == 2 && pmodel == mdDisk) pmodel = mdPerspective;
if(nonisotropic && old_DIM == 2) pmodel = mdGeodesic;
if(GDIM == 2 && among(pmodel, mdPerspective, mdGeodesic)) pmodel = mdDisk;
if(nonisotropic && old_DIM == 2 && vid.texture_step < 4) vid.texture_step = 4;
if(prod) { pmodel = mdPerspective; if(vid.texture_step < 4) vid.texture_step = 4; }
}
}