Fix hotbar padding at bottom
authorBlockMen <nmuelll@web.de>
Tue, 10 Sep 2013 13:05:50 +0000 (15:05 +0200)
committerPilzAdam <pilzadam@minetest.net>
Tue, 10 Sep 2013 21:39:38 +0000 (23:39 +0200)
src/hud.cpp

index de34b9d645fd262744760c37689463a228c57592..a0086b2f7bbbcc4a8d7d24a8c1a2a99a1f97d5e8 100644 (file)
@@ -337,7 +337,7 @@ void Hud::drawHotbar(v2s32 centerlowerpos, s32 halfheartcount, u16 playeritem, s
        s32 hotbar_itemcount = player->hud_hotbar_itemcount;
        s32 padding = hotbar_imagesize / 12;
        s32 width = hotbar_itemcount * (hotbar_imagesize + padding * 2);
-       v2s32 pos = centerlowerpos - v2s32(width / 2, hotbar_imagesize + padding * 2);
+       v2s32 pos = centerlowerpos - v2s32(width / 2, hotbar_imagesize + padding * 3);
        
        if (player->hud_flags & HUD_FLAG_HOTBAR_VISIBLE)
                drawItem(pos, hotbar_imagesize, hotbar_itemcount, mainlist, playeritem + 1, 0);