Skip to content

Commit

Permalink
Increase pickup animation max distance
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschwarzer committed Nov 24, 2023
1 parent ae11953 commit 3e19b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/Core/messages/message_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ namespace core::messages {
const auto pickup_ui_position = world_to_ui_position_2d(modloader::math::convert(pickup_positon)) - top_center;
//pickup_ui_position.y = -pickup_ui_position.y;
const auto distance_squared = modloader::math::distance2(pickup_ui_position, modloader::math::convert(message_position));
if (distance_squared < 25) {
if (distance_squared < 100) {
data.message->position().set(modloader::math::convert(pickup_ui_position));
}
}
Expand Down

0 comments on commit 3e19b86

Please sign in to comment.