1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

arb:: remember filename

This commit is contained in:
Zeno Rogue 2020-05-30 20:00:44 +02:00
parent 21e256fe12
commit 1f1d8edeaa

View File

@ -39,6 +39,7 @@ struct arbi_tiling {
string comment; string comment;
ld cscale; ld cscale;
string filename;
geometryinfo1& get_geometry(); geometryinfo1& get_geometry();
eGeometryClass get_class() { return get_geometry().kind; } eGeometryClass get_class() { return get_geometry().kind; }
@ -192,6 +193,7 @@ EX void load(const string& fname) {
c.shapes.clear(); c.shapes.clear();
c.name = unnamed; c.name = unnamed;
c.comment = ""; c.comment = "";
c.filename = fname;
c.cscale = 1; c.cscale = 1;
exp_parser ep; exp_parser ep;
ep.s = s; ep.s = s;
@ -727,7 +729,7 @@ struct hrmap_arbi : hrmap {
EX hrmap *new_map() { return new hrmap_arbi; } EX hrmap *new_map() { return new hrmap_arbi; }
void run(string fname) { EX void run(string fname) {
stop_game(); stop_game();
eGeometry g = geometry; eGeometry g = geometry;
arbi_tiling t = current; arbi_tiling t = current;