1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

Added game version check for loading maps with canvas floor and darkening

This commit is contained in:
Charlotte Peppers 2022-03-07 18:59:49 -07:00
parent 904faabd96
commit ff67930be3
No known key found for this signature in database
GPG Key ID: 999661E1478F22CF

View File

@ -882,8 +882,10 @@ EX namespace mapstream {
f.read(canvas_default_wall); f.read(canvas_default_wall);
f.read(mapeditor::drawplayer); f.read(mapeditor::drawplayer);
if(patterns::whichCanvas == 'f') f.read(patterns::color_formula); if(patterns::whichCanvas == 'f') f.read(patterns::color_formula);
if(f.vernum >= 0xA90C) { // TODO Please replace this with the next version this pull request is included in
f.read(canvasfloor); f.read(canvasfloor);
f.read(canvasdark); f.read(canvasdark);
}
int i; int i;
f.read(i); if(i > ittypes || i < 0) throw hstream_exception(); f.read(i); if(i > ittypes || i < 0) throw hstream_exception();