From eae33951ad8b13cb335fca8eaec73185959eb44e Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 9 Jan 2015 17:04:25 +0000 Subject: Hud: Fix offset being ignored by inventory bar --- src/hud.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/hud.h') diff --git a/src/hud.h b/src/hud.h index 9583d660b..a28416a3c 100644 --- a/src/hud.h +++ b/src/hud.h @@ -130,7 +130,7 @@ public: void drawCrosshair(); void drawSelectionMesh(); void updateSelectionMesh(const v3s16 &camera_offset); - + std::vector *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& rect, bool selected); -- cgit v1.2.3