Skip to content

Commit

Permalink
Appease clang-tidy (#72719)
Browse files Browse the repository at this point in the history
Move the translator comment above the string
  • Loading branch information
anothersimulacrum authored Mar 30, 2024
1 parent 951fac0 commit 6f38ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2943,8 +2943,8 @@ void map::drop_items( const tripoint &p )
if( creature_hit_chance < 100 ) {
if( hit_part.is_valid() && !creature_below->is_monster() ) {
//~First positional argument: Item name. Second: Name of a person (e.g. "Jane") or player (e.g. "you"). Third: Body part name, accusative.
add_msg_if_player_sees( creature_below->pos(), _(
"Falling %1$s hits %2$s on the %3$s for %4$i damage!" ),
const std::string msg = _( "Falling %1$s hits %2$s on the %3$s for %4$i damage!" );
add_msg_if_player_sees( creature_below->pos(), msg,
i.tname(), creature_below->disp_name(), hit_part->accusative, static_cast<int>( damage ) );
} else {
add_msg_if_player_sees( creature_below->pos(), _( "Falling %1$s hits %2$s for %3$i damage!" ),
Expand Down

0 comments on commit 6f38ffd

Please sign in to comment.