]> git.xonotic.org Git - xonotic/darkplaces.git/commit
allow .rtlights files to have style values outside the range
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 30 Jan 2014 02:05:50 +0000 (02:05 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 30 Jan 2014 02:05:50 +0000 (02:05 +0000)
commit3c414347a82d52139aa5473e15d0b9e9242f5f9e
treeb8018755668cef6c0479d5ccc08f7abfd8a4259b
parent2eb1f2e3f267600373aaf015b4caf6ea4a4163dc
allow .rtlights files to have style values outside the range
0...MAX_LIGHTSTYLES - in particular, -1 is used by fte for unstyled
lights and this is a compatible behavior, just that the loader was
getting in the way.

for safety the MAX_LIGHTSTYLES comparison has been added to each use of
light->style in rendering.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12052 d7cf8633-e32d-0410-b094-e92efae38249
r_shadow.c