Skip to content

Commit

Permalink
Dirty transparency cache when a map regen trap is activated (#35729)
Browse files Browse the repository at this point in the history
Dirty transparency cache when a mapregen trap is activated
  • Loading branch information
John-Candlebury authored and kevingranade committed Nov 26, 2019
1 parent ba75988 commit 329f99b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/trapfunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,7 @@ bool trapfunc::map_regen( const tripoint &p, Creature *c, item * )
popup( _( "Failed to generate the new map" ) );
return false;
}
g->m.set_transparency_cache_dirty( p.z );
return true;
}
}
Expand Down

0 comments on commit 329f99b

Please sign in to comment.