From 300dfde6da52e3a366a4bdb7fc59b0d0ef10f53d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 6 Jul 2018 19:59:29 +0200 Subject: [PATCH] -geo option works correctly when switching to the same geometry. -qpar2 now generates the extra primes automatically. --- commandline.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commandline.cpp b/commandline.cpp index 28960919..eba0ff57 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -236,7 +236,8 @@ else if(args()[0] == '-' && args()[1] == x && args()[2] == '0') { PHASEFROM(2); } else if(argis("-geo")) { shift(); targetgeometry = (eGeometry) argi(); - stop_game_and_switch_mode(rg::geometry); + if(targetgeometry != rg::geometry) + stop_game_and_switch_mode(rg::geometry); } else if(argis("-gp")) { PHASEFROM(2); @@ -323,6 +324,10 @@ else if(args()[0] == '-' && args()[1] == x && args()[2] == '0') { PHASEFROM(2); shift(); sscanf(argcs(), "%d,%d", &a, &b); using namespace fieldpattern; current_extra = a; + + auto& gxcur = fgeomextras[current_extra]; + while(b >= isize(gxcur.primes)) nextPrime(gxcur); + fgeomextras[current_extra].current_prime_id = b; enableFieldChange(); if(geometry != gFieldQuotient) {