1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-23 08:54:48 +00:00

nilrider:: user-created levels taken into account in nilrider.save

This commit is contained in:
Zeno Rogue
2024-08-20 18:11:18 +02:00
parent 79720f2863
commit 88b927e4b1
3 changed files with 12 additions and 0 deletions

View File

@@ -581,7 +581,9 @@ void cleanup_textures() {
void load_level(const string& fname) {
fhstream f(fname, "r");
if(!f.f) throw hr_exception("could not open file ");
level lev("Untitled", '1', nrlUserCreated, "", -1, 1, 1, -1, {}, 0, 0, {}, rot_plane, { goal{0x40FF40, "Collect all the triangles", basic_check(999, 999)} });
lev.filename = fname;
level *csub = &lev;
string s;
while(true) {