1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-13 04:13:03 +00:00

crystal:: removed add_bitruncation -- using ginf[gCrystal].vertex

This commit is contained in:
Zeno Rogue
2018-12-02 11:31:13 +01:00
parent 7da2f2b84a
commit d2dddc07b6
2 changed files with 13 additions and 17 deletions

View File

@@ -1158,9 +1158,9 @@ void set_variation(eVariation target) {
if(variation != target) {
stop_game();
if(euclid6 || binarytiling) geometry = gNormal;
if(target == eVariation::bitruncated && geometry == gCrystal && ginf[gCrystal].sides == 8 && !crystal::add_bitruncation) {
crystal::add_bitruncation = true;
ginf[gCrystal].vertex = 3;
auto& cd = ginf[gCrystal];
if(target == eVariation::bitruncated && geometry == gCrystal && cd.sides == 8 && cd.vertex == 4) {
cd.vertex = 3;
target = eVariation::pure;
}
variation = target;