Skip to content

Commit

Permalink
Put some translation calls inside of if blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Jun 12, 2019
1 parent b00272c commit 17e5458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3174,9 +3174,9 @@ void map::bash_ter_furn( const tripoint &p, bash_params &params )
sound_volume = sound_fail_vol;
}

sound = bash->sound_fail.empty() ? _( "Thnk!" ) : _( bash->sound_fail );
params.did_bash = true;
if( !params.silent ) {
sound = bash->sound_fail.empty() ? _( "Thnk!" ) : _( bash->sound_fail );
sounds::sound( p, sound_volume, sounds::sound_t::combat, sound, false,
"smash_fail", soundfxvariant );
}
Expand Down Expand Up @@ -3205,7 +3205,7 @@ void map::bash_ter_furn( const tripoint &p, bash_params &params )
}

soundfxid = "smash_success";
sound = _( bash->sound );
sound = bash->sound;
// Set this now in case the ter_set below changes this
const bool collapses = smash_ter && has_flag( "COLLAPSES", p );
const bool supports = smash_ter && has_flag( "SUPPORTS_ROOF", p );
Expand Down Expand Up @@ -3337,7 +3337,7 @@ void map::bash_ter_furn( const tripoint &p, bash_params &params )
params.success |= success; // Not always true, so that we can tell when to stop destroying
params.bashed_solid = true;
if( !sound.empty() && !params.silent ) {
sounds::sound( p, sound_volume, sounds::sound_t::combat, sound, false,
sounds::sound( p, sound_volume, sounds::sound_t::combat, _( sound ), false,
soundfxid, soundfxvariant );
}
}
Expand Down

0 comments on commit 17e5458

Please sign in to comment.