mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-24 16:07:07 +00:00
bugfix in parsecolor
This commit is contained in:
parent
e5e89c4800
commit
6ca2051c96
2
util.cpp
2
util.cpp
@ -610,7 +610,7 @@ EX transmatrix parsematrix(const string& s) {
|
|||||||
EX color_t parsecolor(const string& s, bool has_alpha) {
|
EX color_t parsecolor(const string& s, bool has_alpha) {
|
||||||
exp_parser ep;
|
exp_parser ep;
|
||||||
ep.s = s;
|
ep.s = s;
|
||||||
auto col = ep.parsecolor(has_alpha);
|
auto col = ep.parsecolor();
|
||||||
if(!has_alpha) col >>= 8;
|
if(!has_alpha) col >>= 8;
|
||||||
return col;
|
return col;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user