diff options
author | rubenwardy <rubenwardy@gmail.com> | 2015-01-09 17:04:25 +0000 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2016-04-10 23:54:23 -0400 |
commit | eae33951ad8b13cb335fca8eaec73185959eb44e (patch) | |
tree | 314085a9b42c5f5063c96e2a39e9d70b098d2bd2 /src/hud.h | |
parent | 9a04dfd0f5a69f60318a243535993ffa234f6bf6 (diff) | |
download | minetest-eae33951ad8b13cb335fca8eaec73185959eb44e.tar.gz minetest-eae33951ad8b13cb335fca8eaec73185959eb44e.tar.bz2 minetest-eae33951ad8b13cb335fca8eaec73185959eb44e.zip |
Hud: Fix offset being ignored by inventory bar
Diffstat (limited to 'src/hud.h')
-rw-r--r-- | src/hud.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -130,7 +130,7 @@ public: void drawCrosshair(); void drawSelectionMesh(); void updateSelectionMesh(const v3s16 &camera_offset); - + std::vector<aabb3f> *getSelectionBoxes() { return &m_selection_boxes; } @@ -148,8 +148,9 @@ private: void drawStatbar(v2s32 pos, u16 corner, u16 drawdir, std::string texture, s32 count, v2s32 offset, v2s32 size=v2s32()); - void drawItems(v2s32 upperleftpos, s32 itemcount, s32 offset, - InventoryList *mainlist, u16 selectitem, u16 direction); + void drawItems(v2s32 upperleftpos, s32 itemcount, s32 inv_offset, + InventoryList *mainlist, u16 selectitem, u16 direction, + const v2s32 &offset = v2s32(0, 0)); void drawItem(const ItemStack &item, const core::rect<s32>& rect, bool selected); |