Fix misplaced selection box in some situations

This commit is contained in:
sapier 2014-05-26 22:11:42 +02:00
parent 31f9912e9e
commit ab75b1b923

@ -401,6 +401,7 @@ void draw_plain(Camera& camera, bool show_hud, Hud& hud,
std::vector<aabb3f> hilightboxes, video::IVideoDriver* driver, std::vector<aabb3f> hilightboxes, video::IVideoDriver* driver,
bool draw_wield_tool, Client& client, gui::IGUIEnvironment* guienv) bool draw_wield_tool, Client& client, gui::IGUIEnvironment* guienv)
{ {
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
draw_selectionbox(driver, hud, hilightboxes, show_hud); draw_selectionbox(driver, hud, hilightboxes, show_hud);