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
1 changed files with 4 additions and 2 deletions

View File

@ -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);
f.read(canvasfloor);
f.read(canvasdark);
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();