@@ -1534,7 +1534,7 @@ void cata_tiles::draw( const point &dest, const tripoint_bub_ms ¢er, int wid
1534
1534
invisible[0 ] = false ;
1535
1535
1536
1536
if ( y < min_visible.y || y > max_visible.y || x < min_visible.x || x > max_visible.x ) {
1537
- if ( has_memory_at ( pos_global ) ) {
1537
+ if ( you. has_memory_at ( pos_global ) ) {
1538
1538
ll = lit_level::MEMORIZED;
1539
1539
invisible[0 ] = true ;
1540
1540
} else if ( has_draw_override ( pos ) ) {
@@ -1705,7 +1705,7 @@ void cata_tiles::draw( const point &dest, const tripoint_bub_ms ¢er, int wid
1705
1705
const visibility_type vis_type = here.get_visibility ( ll, cache );
1706
1706
if ( would_apply_vision_effects ( vis_type ) ) {
1707
1707
const Creature *critter = creatures.creature_at ( pos, true );
1708
- if ( has_draw_override ( pos ) || has_memory_at ( pos_global ) ||
1708
+ if ( has_draw_override ( pos ) || you. has_memory_at ( pos_global ) ||
1709
1709
( critter &&
1710
1710
( critter->has_flag ( mon_flag_ALWAYS_VISIBLE )
1711
1711
|| you.sees_with_specials ( *critter ) ) ) ) {
@@ -3178,12 +3178,6 @@ bool cata_tiles::apply_vision_effects( const tripoint_bub_ms &pos,
3178
3178
return true ;
3179
3179
}
3180
3180
3181
- bool cata_tiles::has_memory_at ( const tripoint_abs_ms &p ) const
3182
- {
3183
- const memorized_tile &mt = get_avatar ().get_memorized_tile ( p );
3184
- return !mt.get_ter_id ().empty () || !mt.get_dec_id ().empty ();
3185
- }
3186
-
3187
3181
const memorized_tile &cata_tiles::get_terrain_memory_at ( const tripoint_abs_ms &p ) const
3188
3182
{
3189
3183
const memorized_tile &mt = get_avatar ().get_memorized_tile ( p );
0 commit comments