1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-18 06:30:41 +00:00
This commit is contained in:
Zeno Rogue 2024-08-01 12:20:39 +02:00
parent c5eebe4d4c
commit 2f33b0ff1b

View File

@ -817,22 +817,18 @@ void readcolor(const string& cfname) {
int err = fscanf(f, "%08x", &col);
if(err <= 0) throw hstream_exception("reading dot-color");
action = [col] (vertexdata &vd) { vd.m->base->landparam = col >> 8; };
continue;
}
else if(c2 == '/') {
string s = str_to_eol();
action = [s] (vertexdata &vd) { vd.urls.push_back(s); };
continue;
}
else if(c2 == '?') {
string s = str_to_eol();
action = [s] (vertexdata &vd) { vd.infos.push_back(s); };
continue;
}
else if(c2 == '>') {
string s = str_to_eol();
action = [s] (vertexdata &vd) { vd.name = s; };
continue;
}
else {
ungetc(c2, f);