summaryrefslogtreecommitdiff
path: root/src/hud.h
diff options
context:
space:
mode:
authorRealBadAngel <maciej.kasatkin@yahoo.com>2014-05-05 07:45:20 +0200
committerRealBadAngel <maciej.kasatkin@o2.pl>2014-05-05 09:03:37 +0200
commit6f511b1d05d3e1668967a528b77a9e81e31b3c78 (patch)
tree052c6e1d8d94690ea3b682513660cd62ee6b3e8c /src/hud.h
parent09e8bbea03c72cfc21560f953561183b9d29be6a (diff)
downloadminetest-6f511b1d05d3e1668967a528b77a9e81e31b3c78.tar.gz
minetest-6f511b1d05d3e1668967a528b77a9e81e31b3c78.tar.bz2
minetest-6f511b1d05d3e1668967a528b77a9e81e31b3c78.zip
Bugfix: make waypoints respect camera offset
Diffstat (limited to 'src/hud.h')
-rw-r--r--src/hud.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hud.h b/src/hud.h
index 3897a850c..1ace6646f 100644
--- a/src/hud.h
+++ b/src/hud.h
@@ -115,6 +115,7 @@ public:
bool use_hotbar_image;
std::string hotbar_selected_image;
bool use_hotbar_selected_image;
+ v3s16 camera_offset;
Hud(video::IVideoDriver *driver,scene::ISceneManager* smgr,
gui::IGUIEnvironment* guienv, gui::IGUIFont *font,
@@ -125,7 +126,7 @@ public:
void resizeHotbar();
void drawCrosshair();
void drawSelectionBoxes(std::vector<aabb3f> &hilightboxes);
- void drawLuaElements();
+ void drawLuaElements(v3s16 camera_offset);
private:
void drawStatbar(v2s32 pos, u16 corner, u16 drawdir,
std::string texture, s32 count, v2s32 offset);