From be540043ee14fde1c70c1eb1f1e4483ca0e17680 Mon Sep 17 00:00:00 2001 From: Muhammad Rifqi Priyo Susanto Date: Wed, 24 Apr 2024 09:00:04 +0700 Subject: [PATCH] Do not make inventory_items_animations setting static thread_local (#14573) This removes restart requirement when toggling the setting after the first play/run. --- src/client/hud.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/hud.cpp b/src/client/hud.cpp index df3e13e3a..6bb9c234b 100644 --- a/src/client/hud.cpp +++ b/src/client/hud.cpp @@ -1046,8 +1046,7 @@ void drawItemStack( return; } - const static thread_local bool enable_animations = - g_settings->getBool("inventory_items_animations"); + const bool enable_animations = g_settings->getBool("inventory_items_animations"); auto *idef = client->idef(); const ItemDefinition &def = item.getDefinition(idef);