aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-05-26 22:11:42 +0200
committersapier <Sapier at GMX dot net>2014-05-26 22:47:40 +0200
commitab75b1b923db157a7d05c5498456a0fd1faee883 (patch)
tree2c1d55c01bf9181494f8543256185f374850399d
parent31f9912e9e9f0d970725788af27f3a731415a57d (diff)
downloadminetest-ab75b1b923db157a7d05c5498456a0fd1faee883.tar.gz
minetest-ab75b1b923db157a7d05c5498456a0fd1faee883.tar.bz2
minetest-ab75b1b923db157a7d05c5498456a0fd1faee883.zip
Fix misplaced selection box in some situations
-rw-r--r--src/drawscene.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drawscene.cpp b/src/drawscene.cpp
index 218ddec68..f7b916a8c 100644
--- a/src/drawscene.cpp
+++ b/src/drawscene.cpp
@@ -401,6 +401,7 @@ void draw_plain(Camera& camera, bool show_hud, Hud& hud,
std::vector<aabb3f> hilightboxes, video::IVideoDriver* driver,
bool draw_wield_tool, Client& client, gui::IGUIEnvironment* guienv)
{
+ driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
draw_selectionbox(driver, hud, hilightboxes, show_hud);