diff options
author | BlockMen <nmuelll@web.de> | 2013-09-10 15:05:50 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-09-10 23:39:38 +0200 |
commit | da9fe6485134ec81cc3628b1bc4847c3b2226c76 (patch) | |
tree | b132c4e2122205a8fdc3dc4c35d529dd7fca6dbb /src | |
parent | 4feea0ac6845ea025e8784f63f48e567d1d24c22 (diff) | |
download | minetest-da9fe6485134ec81cc3628b1bc4847c3b2226c76.tar.gz minetest-da9fe6485134ec81cc3628b1bc4847c3b2226c76.tar.bz2 minetest-da9fe6485134ec81cc3628b1bc4847c3b2226c76.zip |
Fix hotbar padding at bottom
Diffstat (limited to 'src')
-rw-r--r-- | src/hud.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hud.cpp b/src/hud.cpp index de34b9d64..a0086b2f7 100644 --- a/src/hud.cpp +++ b/src/hud.cpp @@ -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); |