1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 07:27:40 +00:00

Archimedean tilings are now saved correctly in map editor and texture mode

This commit is contained in:
Zeno Rogue
2018-08-22 00:02:08 +02:00
parent fd8e093bdf
commit be6748cbb3
2 changed files with 34 additions and 0 deletions

View File

@@ -132,6 +132,12 @@ namespace mapstream {
save(fgeomextras[current_extra].current_prime_id);
}
}
if(geometry == gArchimedean) {
const string& symbol = arcm::current.symbol;
char size = isize(symbol);
save(size);
for(int i=0; i<size; i++) save(symbol[i]);
}
addToQueue((bounded || euclid) ? currentmap->gamestart() : cwt.at->master->c7);
for(int i=0; i<isize(cellbyid); i++) {
cell *c = cellbyid[i];
@@ -225,6 +231,17 @@ namespace mapstream {
enableFieldChange();
}
}
if(geometry == gArchimedean) {
string& symbol = arcm::current.symbol;
char size;
load(size);
symbol.resize(size);
for(int i=0; i<size; i++) load(symbol[i]);
arcm::current.parse();
if(arcm::current.errors > 0) {
printf("Errors! %s\n", arcm::current.errormsg.c_str());
}
}
}
resetGeometry();