1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-19 11:44:48 +00:00

fixed wallif

This commit is contained in:
Zeno Rogue 2024-05-27 13:43:46 +02:00
parent 8321751cb0
commit 5c03f9c7fe

View File

@ -553,8 +553,8 @@ color_t exp_parser::parsecolor(int prio) {
force_eat(",");
color_t res = parsecolor();
force_eat(")");
res &= 0xFFFFFF;
if(val0 <= 0) res |= 0x1000000;
res &= 0xFFFFFF00;
if(val0 > 0) res |= 0x1;
return res;
}
if(eat("rgb(")) {