mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-28 13:22:49 +00:00
fixup
This commit is contained in:
parent
c5eebe4d4c
commit
2f33b0ff1b
@ -817,22 +817,18 @@ void readcolor(const string& cfname) {
|
|||||||
int err = fscanf(f, "%08x", &col);
|
int err = fscanf(f, "%08x", &col);
|
||||||
if(err <= 0) throw hstream_exception("reading dot-color");
|
if(err <= 0) throw hstream_exception("reading dot-color");
|
||||||
action = [col] (vertexdata &vd) { vd.m->base->landparam = col >> 8; };
|
action = [col] (vertexdata &vd) { vd.m->base->landparam = col >> 8; };
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
else if(c2 == '/') {
|
else if(c2 == '/') {
|
||||||
string s = str_to_eol();
|
string s = str_to_eol();
|
||||||
action = [s] (vertexdata &vd) { vd.urls.push_back(s); };
|
action = [s] (vertexdata &vd) { vd.urls.push_back(s); };
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
else if(c2 == '?') {
|
else if(c2 == '?') {
|
||||||
string s = str_to_eol();
|
string s = str_to_eol();
|
||||||
action = [s] (vertexdata &vd) { vd.infos.push_back(s); };
|
action = [s] (vertexdata &vd) { vd.infos.push_back(s); };
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
else if(c2 == '>') {
|
else if(c2 == '>') {
|
||||||
string s = str_to_eol();
|
string s = str_to_eol();
|
||||||
action = [s] (vertexdata &vd) { vd.name = s; };
|
action = [s] (vertexdata &vd) { vd.name = s; };
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ungetc(c2, f);
|
ungetc(c2, f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user