1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-27 09:24:53 +00:00

fixed a bug while saving/loading INVERSE maps

This commit is contained in:
Zeno Rogue 2020-07-28 13:18:06 +02:00
parent 4fc6b8edb5
commit dcda11d740

View File

@ -430,7 +430,7 @@ namespace mapstream {
char nbtype = char(variation); char nbtype = char(variation);
f.write(nbtype); f.write(nbtype);
#if CAP_GP #if CAP_GP
if(GOLDBERG) { if(GOLDBERG || INVERSE) {
f.write(gp::param.first); f.write(gp::param.first);
f.write(gp::param.second); f.write(gp::param.second);
} }
@ -489,7 +489,7 @@ namespace mapstream {
f.read(nbtype); f.read(nbtype);
variation = eVariation(nbtype); variation = eVariation(nbtype);
#if CAP_GP #if CAP_GP
if(GOLDBERG) { if(GOLDBERG || INVERSE) {
f.read(gp::param.first); f.read(gp::param.first);
f.read(gp::param.second); f.read(gp::param.second);
} }