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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user