From 3e19b8651a279a21e5cbd51ace261b242f74fb8e Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Sat, 25 Nov 2023 00:41:49 +0100 Subject: [PATCH] Increase pickup animation max distance --- projects/Core/messages/message_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/Core/messages/message_display.cpp b/projects/Core/messages/message_display.cpp index d4e3acb76a..d562bd2e90 100644 --- a/projects/Core/messages/message_display.cpp +++ b/projects/Core/messages/message_display.cpp @@ -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)); } }