Skip to content

Commit

Permalink
Improve frag messages (#310)
Browse files Browse the repository at this point in the history
* Improve the message for being fragged

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Rafał Harabień <[email protected]>
  • Loading branch information
is-this-c and rafalh authored Nov 28, 2024
1 parent 15288fa commit 3ccdedc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Version 1.9.0 (not released yet)

[@is-this-c](https://github.com/is-this-c)
- Support `©` in TrueType fonts
- Improve frag messages

[@Mystyle-48](https://github.com/Mystyle-48)
- Simplify installation detection in setup and launcher
Expand Down
2 changes: 1 addition & 1 deletion game_patch/multi/kill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void print_kill_message(rf::Player* killed_player, rf::Player* killer_player)
if (killer_weapon_cls_id >= 0 && killer_weapon_cls_id < 64) {
auto& weapon_cls = rf::weapon_types[killer_weapon_cls_id];
auto& weapon_name = weapon_cls.display_name;
msg = rf::String::format("{}{} ({})!", mui_msg, killer_name, weapon_name);
msg = rf::String::format("{}{}'s {}!", mui_msg, killer_name, string_to_lower(weapon_name));
}
else {
msg = rf::String::format("{}{}!", mui_msg, killer_name);
Expand Down

0 comments on commit 3ccdedc

Please sign in to comment.