1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

no more crash when saving config in arcm

This commit is contained in:
Zeno Rogue 2019-08-17 14:07:29 +02:00
parent 5a9f3f57e6
commit f3dd779947
2 changed files with 3 additions and 0 deletions

View File

@ -1377,6 +1377,7 @@ EX void initgraph() {
#if CAP_CONFIG
loadConfig();
#endif
arcm::current.parse();
#if CAP_COMMANDLINE
arg::read(2);

View File

@ -508,6 +508,8 @@ EX void initConfig() {
addsaverenum(models::basic_model, "basic model");
addsaver(models::use_atan, "use_atan");
addsaver(arcm::current.symbol, "arcm-symbol", "4^5");
for(int i=0; i<isize(ginf); i++) {
if(ginf[i].flags & qELLIPTIC)
sightranges[i] = M_PI;