From 5766f94079f89a2d2b68d3933995c0339f8cec94 Mon Sep 17 00:00:00 2001 From: MoNTE48 Date: Mon, 20 Dec 2021 22:59:02 +0100 Subject: [PATCH] Apply `inventory_items_animations` setting without restarting --- src/hud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hud.cpp b/src/hud.cpp index 2ae0db96..057c9447 100644 --- a/src/hud.cpp +++ b/src/hud.cpp @@ -650,7 +650,7 @@ void drawItemStack(video::IVideoDriver *driver, ItemRotationKind rotation_kind) { static MeshTimeInfo rotation_time_infos[IT_ROT_NONE]; - static bool enable_animations = + const bool enable_animations = g_settings->getBool("inventory_items_animations"); if (item.empty()) {