1
0
Fork 0
forked from fte/fteqw

fix to gl crosshair

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1514 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-10-20 04:32:51 +00:00
parent 2b54798d9f
commit 3d861b61e3

View file

@ -1307,7 +1307,10 @@ void GLDraw_Crosshair(void)
}
GL_TexEnv(GL_MODULATE);
chrebuild = chmodified != crosshaircolor.modified || crosshairimage.modified || crosshair.modified || crosshair.value >= FIRSTANIMATEDCROSHAIR;
chrebuild = chmodified != crosshaircolor.modified ||
crosshair.modified ||
(*crosshairimage.string && crosshairimage.modified) ||
crosshair.value >= FIRSTANIMATEDCROSHAIR;
if (chrebuild)
{
@ -1343,7 +1346,7 @@ void GLDraw_Crosshair(void)
} // i contains the crosshair color
c2 = c;
VectorScale(chcolor, 1/255, chcolor); // scale 0-255 to 0-1 range
VectorScale(chcolor, 1/255.0, chcolor); // scale 0-255 to 0-1 range
chmodified = crosshaircolor.modified;
}