Skip to content

Commit

Permalink
set terrain memory cache to dirty when setting terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
SurFlurer committed Mar 8, 2024
1 parent 9f08089 commit 9ba9a2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2261,6 +2261,7 @@ bool map::ter_set( const tripoint &p, const ter_id &new_terrain, bool avoid_crea
invalidate_max_populated_zlev( p.z );

memory_cache_dec_set_dirty( p, true );
memory_cache_ter_set_dirty( p, true );
avatar &player_character = get_avatar();
if( player_character.sees( p ) ) {
player_character.memorize_clear_decoration( getglobal( p ), "t_" );
Expand Down

0 comments on commit 9ba9a2d

Please sign in to comment.