Skip to content

Commit

Permalink
# If this commit is applied, it will ....
Browse files Browse the repository at this point in the history
# |<-- Using around 50, Maximum 72 Characters -->|
Allow character to see an opaque tile while standing on another adjacent opaque tile.

# Explain why this change is being made
# |<----      Limit Each Line to a Maximum Of 72 Characters       ---->|

# Provide links or keys to any relevant tickets, articles or other resources
# Example: fixes CleverRaven#1234, closes CleverRaven#2345, resolves CleverRaven#3456, references CleverRaven#4567
Fixes CleverRaven#28694
  • Loading branch information
Yunatan committed Apr 24, 2019
1 parent 0269b1b commit 7a682ff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7688,6 +7688,13 @@ void map::build_map_cache( const int zlev, bool skip_lightmap )
}
}

// The tile player is standing on should always be transparent
auto &p = g->u.pos();
if ((has_furn(p) && !furn(p).obj().transparent) || !ter(p).obj().transparent) {
get_cache(p.z).transparency_cache[p.x][p.y] = LIGHT_TRANSPARENCY_CLEAR;
set_transparency_cache_dirty(p.z);
}

build_seen_cache( g->u.pos(), zlev );
if( !skip_lightmap ) {
generate_lightmap( zlev );
Expand Down

0 comments on commit 7a682ff

Please sign in to comment.