1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 18:54:48 +00:00

mapeditor saves color_formula

This commit is contained in:
Zeno Rogue 2019-02-06 17:24:03 +01:00
parent daf9a5906a
commit 41ee2f4a7c

View File

@ -136,6 +136,7 @@ namespace mapstream {
f.write(patterns::whichCanvas); f.write(patterns::whichCanvas);
f.write(patterns::displaycodes); f.write(patterns::displaycodes);
f.write(mapeditor::drawplayer); f.write(mapeditor::drawplayer);
if(patterns::whichCanvas == 'f') f.write(patterns::color_formula);
{ {
int i = ittypes; f.write(i); int i = ittypes; f.write(i);
@ -304,6 +305,7 @@ namespace mapstream {
f.read(patterns::whichCanvas); f.read(patterns::whichCanvas);
f.read(patterns::displaycodes); f.read(patterns::displaycodes);
f.read(mapeditor::drawplayer); f.read(mapeditor::drawplayer);
if(patterns::whichCanvas == 'f') f.read(patterns::color_formula);
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();