rulegen3:: fixes

This commit is contained in:
Zeno Rogue 2022-08-26 13:21:36 +02:00
parent 9f1480d21e
commit e70f3d1fe6
2 changed files with 6 additions and 2 deletions

View File

@ -2104,6 +2104,9 @@ EX void generate_rules() {
flags |= w_numerical; flags |= w_numerical;
start_game(); start_game();
} }
else if(WDIM == 3) {
flags |= w_numerical;
}
else if(!arb::in()) try { else if(!arb::in()) try {
arb::convert::convert(); arb::convert::convert();
if(flags & w_numerical) arb::convert::activate(); if(flags & w_numerical) arb::convert::activate();

View File

@ -1723,9 +1723,10 @@ int readRuleArgs3() {
} }
else if(argis("-load-honeycomb")) { else if(argis("-load-honeycomb")) {
PHASE(3);
stop_game(); stop_game();
string s = args(); shift(); string s = args();
shift(); reg3::replace_rule_file = s; reg3::replace_rule_file = s;
shstream ins(decompress_string(read_file_as_string(s))); shstream ins(decompress_string(read_file_as_string(s)));
ins.read(ins.vernum); ins.read(ins.vernum);
mapstream::load_geometry(ins); mapstream::load_geometry(ins);