aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorWarr1024 <warr1024@gmail.com>2020-02-26 04:26:24 -0500
committerGitHub <noreply@github.com>2020-02-26 10:26:24 +0100
commit244121b9643f91e1b8ffb4c37a255d7603da2116 (patch)
tree8d4579302e451899a2bc19fb791def3a4c2d271d /src/client
parent8ddb6718e3e0b4713fce13a7d7324327b2e56d20 (diff)
downloadhax-minetest-server-244121b9643f91e1b8ffb4c37a255d7603da2116.tar.gz
hax-minetest-server-244121b9643f91e1b8ffb4c37a255d7603da2116.zip
Allow texture modifiers in hotbar textures. (#9271)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/hud.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/client/hud.cpp b/src/client/hud.cpp
index e78130dd4..37de6640b 100644
--- a/src/client/hud.cpp
+++ b/src/client/hud.cpp
@@ -221,19 +221,13 @@ void Hud::drawItems(v2s32 upperleftpos, v2s32 screen_offset, s32 itemcount,
// Store hotbar_image in member variable, used by drawItem()
if (hotbar_image != player->hotbar_image) {
hotbar_image = player->hotbar_image;
- if (!hotbar_image.empty())
- use_hotbar_image = tsrc->isKnownSourceImage(hotbar_image);
- else
- use_hotbar_image = false;
+ use_hotbar_image = !hotbar_image.empty();
}
// Store hotbar_selected_image in member variable, used by drawItem()
if (hotbar_selected_image != player->hotbar_selected_image) {
hotbar_selected_image = player->hotbar_selected_image;
- if (!hotbar_selected_image.empty())
- use_hotbar_selected_image = tsrc->isKnownSourceImage(hotbar_selected_image);
- else
- use_hotbar_selected_image = false;
+ use_hotbar_selected_image = !hotbar_selected_image.empty();
}
// draw customized item background