Skip to content

Commit

Permalink
Merge pull request #72248 from SurFlurer/refresh_ter_memory
Browse files Browse the repository at this point in the history
Set terrain memory cache to dirty when setting terrain
  • Loading branch information
Maleclypse authored Mar 9, 2024
2 parents 311da93 + 9ba9a2d commit 925f13b
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 925f13b

Please sign in to comment.