Skip to content

Commit

Permalink
Fix hotbar padding at bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockMen authored and PilzAdam committed Sep 10, 2013
1 parent 4feea0a commit da9fe64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hud.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit da9fe64

Please sign in to comment.