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

product:: no crash on load when saved

This commit is contained in:
Zeno Rogue 2019-08-19 13:54:59 +02:00
parent 1778fd5d8e
commit 0811f8f2d0
2 changed files with 2 additions and 0 deletions

View File

@ -1387,6 +1387,7 @@ EX void initgraph() {
loadConfig(); loadConfig();
#endif #endif
arcm::current.parse(); arcm::current.parse();
if(geometry == gProduct) geometry = product::underlying;
#if CAP_COMMANDLINE #if CAP_COMMANDLINE
arg::read(2); arg::read(2);

View File

@ -511,6 +511,7 @@ EX void initConfig() {
addsaver(models::use_atan, "use_atan"); addsaver(models::use_atan, "use_atan");
addsaver(arcm::current.symbol, "arcm-symbol", "4^5"); addsaver(arcm::current.symbol, "arcm-symbol", "4^5");
addsaverenum(product::underlying, "product-underlying");
for(int i=0; i<isize(ginf); i++) { for(int i=0; i<isize(ginf); i++) {
if(ginf[i].flags & qELLIPTIC) if(ginf[i].flags & qELLIPTIC)