Skip to content

Commit

Permalink
Cast natural light regardless of brightness
Browse files Browse the repository at this point in the history
Previously, natural light was only cast onto walls and into buildings
during the day.  This had strange side-effects, like walls being almost
invisible at night.

Remove that check and simply always cast the light.

Fixes CleverRaven#13786
  • Loading branch information
jbytheway committed Nov 22, 2018
1 parent a00b61e commit 0c2f273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lightmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void map::generate_lightmap( const int zlev )
const int y = sy + smy * SEEY;
const tripoint p( x, y, zlev );
// Project light into any openings into buildings.
if( natural_light > LIGHT_SOURCE_BRIGHT && !outside_cache[p.x][p.y] ) {
if( !outside_cache[p.x][p.y] ) {
// Apply light sources for external/internal divide
for( int i = 0; i < 4; ++i ) {
if( INBOUNDS( p.x + dir_x[i], p.y + dir_y[i] ) &&
Expand Down

0 comments on commit 0c2f273

Please sign in to comment.