- Fixed: Red blood particles used too dark colors.
- Fixed: The smoothlighting code in side_t::GetLightLevel relied on the global 'linedef' variable for automatic fake contrast although this issue had already been fixed for the original code here. - Replaced static string buffers with FString in FONTDEFS parser. SVN r1194 (trunk)
This commit is contained in:
parent
b2bbdb9e4c
commit
49565ccb84
6 changed files with 54 additions and 25 deletions
|
|
@ -1435,12 +1435,13 @@ int side_t::GetLightLevel (bool foggy, int baselight) const
|
|||
{
|
||||
if (!(Flags & WALLF_NOFAKECONTRAST))
|
||||
{
|
||||
if((level.flags & LEVEL_SMOOTHLIGHTING) || (Flags & WALLF_SMOOTHLIGHTING) || r_smoothlighting)
|
||||
if (((level.flags & LEVEL_SMOOTHLIGHTING) || (Flags & WALLF_SMOOTHLIGHTING) || r_smoothlighting) &&
|
||||
lines[linenum].dx != 0)
|
||||
{
|
||||
baselight += int // OMG LEE KILLOUGH LIVES! :/
|
||||
(
|
||||
(float(level.WallHorizLight)
|
||||
+abs(atan(float(linedef->dy)/float(linedef->dx))/float(1.57079))
|
||||
+abs(atan(float(lines[linenum].dy)/float(lines[linenum].dx))/float(1.57079))
|
||||
*float(level.WallVertLight - level.WallHorizLight))
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue