1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

arb::convert:: fixed a bug when trying to run multiple times

This commit is contained in:
Zeno Rogue 2021-07-31 15:47:58 +02:00
parent 0a141e0606
commit 8d5d311555

View File

@ -1132,6 +1132,7 @@ void be_identified(cellwalker cw1, cellwalker cw2) {
EX void convert() {
start_game();
identification.clear(); changes = 0;
manual_celllister cl;
cl.add(currentmap->gamestart());
@ -1191,6 +1192,7 @@ EX void convert() {
ac.floor_scale = cgi.hexvdist / cgi.scalefactor;
ac.range = cgi.base_distlimit;
int N = isize(old_shvids);
ac.shapes.clear();
ac.shapes.resize(N);
ginf[gArbitrary].g = cginf.g;