summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-08-25 15:41:16 +0200
committerKahrl <kahrl@gmx.net>2013-09-05 00:57:09 +0200
commit7935044820a02817cd5483be32ec82c2fe47a550 (patch)
tree781362ed93e508381270a47bacb3fd72cb35176e /src
parente8b94679057cad2857f53138ef52cfdce97970d6 (diff)
downloadminetest-7935044820a02817cd5483be32ec82c2fe47a550.tar.gz
minetest-7935044820a02817cd5483be32ec82c2fe47a550.tar.bz2
minetest-7935044820a02817cd5483be32ec82c2fe47a550.zip
Fix selectionbox not honoring anaglyph mode 3d distortion
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d3d49d7b4..5d8365781 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -3199,6 +3199,11 @@ void the_game(
smgr->drawAll(); // 'smgr->drawAll();' may go here
+ driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
+
+ if (show_hud)
+ hud.drawSelectionBoxes(hilightboxes);
+
//Right eye...
irr::core::vector3df rightEye;
@@ -3223,6 +3228,11 @@ void the_game(
smgr->drawAll(); // 'smgr->drawAll();' may go here
+ driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
+
+ if (show_hud)
+ hud.drawSelectionBoxes(hilightboxes);
+
//driver->endScene();
@@ -3251,9 +3261,11 @@ void the_game(
driver->setMaterial(m);
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
-
- if (show_hud)
+ if((!g_settings->getBool("anaglyph")) && (show_hud))
+ {
hud.drawSelectionBoxes(hilightboxes);
+ }
+
/*
Wielded tool
*/