Skip to content

Commit

Permalink
Include vehicle roofs for map::draw_from_above
Browse files Browse the repository at this point in the history
  • Loading branch information
irwiss committed May 13, 2024
1 parent 81ede3c commit f570910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7330,7 +7330,7 @@ void map::draw_from_above( const catacurses::window &w, const tripoint &p,
tercol = curr_furn.color();
} else if( ( veh = veh_at_internal( p, part_below ) ) != nullptr ) {
const vpart_position vpp( const_cast<vehicle &>( *veh ), part_below );
const vpart_display vd = veh->get_display_of_tile( vpp.mount(), true, true, false );
const vpart_display vd = veh->get_display_of_tile( vpp.mount(), true, true, true );
const int roof = veh->roof_at_part( part_below );
sym = vd.symbol_curses;
tercol = roof >= 0 || vpp.obstacle_at_part() ? c_light_gray : c_light_gray_cyan;
Expand Down

0 comments on commit f570910

Please sign in to comment.