Bug 5048 - Entity constant light does not work correctly
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2011-06-17 19:52 EDT by Zack Middleton
Modified: 2011-06-18 10:52:47 EDT
1 user (show)

See Also:


Attachments
rgb should be on scale 0 to 1, not 0 to 255, for light function (430 bytes, application/octet-stream)
2011-06-17 19:52 EDT, Zack Middleton

Description Zack Middleton 2011-06-17 19:52:52 EDT
Created attachment 2789 [details]
rgb should be on scale 0 to 1, not 0 to 255, for light function

"light" and "color" fields in some func_* entities setup constant light for cgame. However, cgame does not add the light correctly.

Found by Eraesr (EntityPlus developer). EntityPlus is GPL3+, but I was given permission to use in GPL2+.
Comment 1 Thilo Schulz 2011-06-18 10:52:47 EDT
You do realize though that this patch does not work either?
This is doing an integer division by 255 of values in the range of [0, 255]. Anyways, fixed r2044