geometry changing now keeps gp:: state if possible -- no longer disable when switching to nonorientable or a4

This commit is contained in:
Zeno Rogue 2018-07-10 13:17:55 +02:00
parent c1105aa263
commit 84afa659c8
1 changed files with 7 additions and 1 deletions

View File

@ -1174,7 +1174,13 @@ void switch_game_mode(char switchWhat) {
else geometry = targetgeometry;
if(chaosmode && (euclid || sphere || quotient)) chaosmode = false;
if(nonbitrunc && euclid6) nonbitrunc = false;
if(gp::on && (S3 != 3 || elliptic)) gp::on = false;
if(gp::on && gp::param == gp::loc(1,1) && S3 == 3) {
gp::on = false; nonbitrunc = false;
}
if(gp::on && nonorientable) {
if(gp::param.second && gp::param.second != gp::param.first)
gp::param.second = 0;
}
need_reset_geometry = true;
#if CAP_TEXTURE