]> 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)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 8 May 2014 11:36:28 +0000 (13:36 +0200)
commit3c0b86e1404718fc658a75167bd9cd9619fc2389
treeb8018755668cef6c0479d5ccc08f7abfd8a4259b
parente9586f256dfc1e6d0a6e4bb4a85ff4ff3850bb88
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
::stable-branch::merge=3c414347a82d52139aa5473e15d0b9e9242f5f9e
r_shadow.c