Skip to content

Commit

Permalink
Fix selectionbox not honoring anaglyph mode 3d distortion
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and kahrl committed Sep 4, 2013
1 parent e8b9467 commit 7935044
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/game.cpp
Expand Up @@ -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;
Expand All @@ -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();

Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 7935044

Please sign in to comment.