Skip to content

Commit

Permalink
Add back the filthy hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Nov 27, 2024
1 parent 376908c commit 9a8d3a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lightmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ bool map::build_vision_transparency_cache( int zlev )
}
}

// The tile player is standing on should always be visible
// Shouldn't this be handled in the player's seen cache instead??
if( is_player_z && inbounds( p ) ) {
vision_transparency_cache[p.x()][p.y()] = LIGHT_TRANSPARENCY_OPEN_AIR;
}

map_cache.transparency_cache_dirty.reset();
return dirty;
}
Expand Down

0 comments on commit 9a8d3a6

Please sign in to comment.