Fix crosshair color.

git-svn-id: https://svn.eduke32.com/eduke32@4354 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-02-23 20:44:43 +00:00
parent f346e46ed8
commit 605c4dbc21

View file

@ -3309,7 +3309,7 @@ void G_SetCrosshairColor(int32_t r, int32_t g, int32_t b)
ii = tilesizx[CROSSHAIR]*tilesizy[CROSSHAIR]; ii = tilesizx[CROSSHAIR]*tilesizy[CROSSHAIR];
if (ii <= 0) return; if (ii <= 0) return;
if (getrendermode() != REND_CLASSIC) if (getrendermode() == REND_CLASSIC)
i = getclosestcol(CrosshairColors.r>>2, CrosshairColors.g>>2, CrosshairColors.b>>2); i = getclosestcol(CrosshairColors.r>>2, CrosshairColors.g>>2, CrosshairColors.b>>2);
else i = getclosestcol(63, 63, 63); // use white in GL so we can tint it to the right color else i = getclosestcol(63, 63, 63); // use white in GL so we can tint it to the right color