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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user