mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-23 16:50:27 +00:00
Added game version check for loading maps with canvas floor and darkening
This commit is contained in:
parent
904faabd96
commit
ff67930be3
@ -882,8 +882,10 @@ EX namespace mapstream {
|
||||
f.read(canvas_default_wall);
|
||||
f.read(mapeditor::drawplayer);
|
||||
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(canvasdark);
|
||||
}
|
||||
|
||||
int i;
|
||||
f.read(i); if(i > ittypes || i < 0) throw hstream_exception();
|
||||
|
Loading…
Reference in New Issue
Block a user