smbhax, with the version of Hengband including Gwarl's color changes, bracket the color color scaling loop with an if statement:
That's the essence of the previously linked pull request for Angband. From Gwarl's description, it sounds like angband.live's terminal emulator does not support overwriting the color table (so can_change_colors() should return false) and the variants based on the Angband 2.* code didn't check for that.
Code:
if (!can_change_colors()) {
/* Gwarl's loop over the color table with scaling here. */
} else {
/* Hengband's previous color loop here. */
for (i = 0; i < 16; ++i) {
init_color(i, (angband_color_table[i][1] * 1000) / 255,
(angband_color_table[i][2] * 1000) / 255,
(angband_color_table[i][3] * 1000) / 255);
}
}

Comment