1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Bugfix: make waypoints respect camera offset

This commit is contained in:
RealBadAngel 2014-05-05 07:45:20 +02:00 committed by RealBadAngel
parent 09e8bbea03
commit 6f511b1d05
3 changed files with 6 additions and 4 deletions

View file

@ -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);