mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-28 12:27:40 +00:00
mapeditor saves color_formula
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user