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

auto-reset variation to variation_for when setting geometry

This commit is contained in:
Zeno Rogue 2020-07-13 00:56:00 +02:00
parent 2449895b49
commit e90e0f861e

View File

@ -1287,6 +1287,7 @@ EX void set_geometry(eGeometry target) {
if(bt::in() || WDIM == 3 || kite::in() || arb::in()) if(!hybri) variation = eVariation::pure; if(bt::in() || WDIM == 3 || kite::in() || arb::in()) if(!hybri) variation = eVariation::pure;
#endif #endif
if(S3 >= OINF) variation = eVariation::pure; if(S3 >= OINF) variation = eVariation::pure;
if(INVERSE) variation = gp::variation_for(gp::param);
if(ginf[target].default_variation == eVariation::pure && geometry != gArchimedean) if(ginf[target].default_variation == eVariation::pure && geometry != gArchimedean)
variation = eVariation::pure; variation = eVariation::pure;
if(was_default) pmodel = default_model(); if(was_default) pmodel = default_model();