1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-09 22:59:43 +00:00

translating textures to a more general type

This commit is contained in:
Zeno Rogue
2017-12-19 16:40:24 +01:00
parent 49bd1a0b2b
commit d0a925a8ca
4 changed files with 113 additions and 49 deletions

View File

@@ -1097,6 +1097,10 @@ void restartGame(char switchWhat, bool push, bool keep_screens) {
if(euclid6) geometry = gNormal;
nontruncated = !nontruncated;
resetGeometry();
if(texture::tstate == texture::tsActive)
texture::tstate = texture::tsAdjusting;
if(texture::tstate_max == texture::tsActive)
texture::tstate = texture::tsAdjusting;
}
if(switchWhat == 'g') {
if(geometry == targetgeometry) geometry = gNormal;
@@ -1104,7 +1108,9 @@ void restartGame(char switchWhat, bool push, bool keep_screens) {
if(chaosmode && (euclid || sphere || quotient)) chaosmode = false;
if(nontruncated && euclid6) nontruncated = false;
resetGeometry();
resetGeometry();
if(texture::tstate == texture::tsActive)
texture::tstate = texture::tsOff;
}
if(switchWhat == 'y') {
yendor::on = !yendor::on;