Skip to content

Commit

Permalink
fix ALARMED flag
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardianDll committed Oct 31, 2024
1 parent f348de9 commit 6a0e3fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4257,6 +4257,11 @@ void map::bash_ter_furn( const tripoint_bub_ms &p, bash_params &params )
}
}

if( has_flag( ter_furn_flag::TFLAG_ALARMED, p ) ) {
sounds::sound( p, 40, sounds::sound_t::alarm, _( "an alarm go off!" ),
false, "environment", "alarm" );
}

if( bash == nullptr || ( bash->destroy_only && !params.destroy ) ) {
// Nothing bashable here
if( impassable( p ) ) {
Expand Down

0 comments on commit 6a0e3fd

Please sign in to comment.