move green color translation formula one step away from cyan

This commit is contained in:
Fabian Greffrath 2023-09-26 08:13:21 +02:00
parent f1323c8512
commit 62cd1e29a2

View File

@ -197,7 +197,7 @@ byte V_Colorize (byte *playpal, int cr, byte source)
if (cr == CR_GREEN) if (cr == CR_GREEN)
{ {
// hsv.x = 135./360.; // hsv.x = 135./360.;
hsv.x = (145. * hsv.z + 120. * (1. - hsv.z))/360.; hsv.x = (144. * hsv.z + 120. * (1. - hsv.z))/360.;
} }
else if (cr == CR_GOLD) else if (cr == CR_GOLD)
{ {