1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 09:17:57 +00:00

fixed some CAP guards

This commit is contained in:
Zeno Rogue
2022-05-06 12:40:48 +02:00
parent 075630e753
commit 78b0324a91
12 changed files with 57 additions and 3 deletions

View File

@@ -1050,8 +1050,10 @@ bool texture_config::save() {
if(arb::in()) tes = arb::current.filename;
csymbol = "";
#if CAP_ARCM
if(arcm::in()) csymbol = arcm::current.symbol;
else csymbol = "";
#endif
for(auto s: texturesavers) if(s->dosave())
fprintf(f, "%s=%s\n", s->name.c_str(), s->save().c_str());
@@ -1080,6 +1082,7 @@ bool texture_config::load() {
if(targetgeometry != geometry) {
stop_game();
#if CAP_ARCM
if(targetgeometry == gArchimedean) {
arcm::current.symbol = csymbol;
arcm::current.parse();
@@ -1089,6 +1092,7 @@ bool texture_config::load() {
return false;
}
}
#endif
if(targetgeometry == gArbitrary) {
arb::run(tes);
stop_game();