summaryrefslogtreecommitdiff
path: root/src/drawscene.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-12 23:38:34 +0200
committersapier <Sapier at GMX dot net>2014-06-12 23:38:34 +0200
commitc78aa7cf24a568bd14d3ff1dfaaca9356a02666a (patch)
treea45e39e3fe78748c27f08bc5fd70c998139aec45 /src/drawscene.cpp
parentd7986da58c58b5ba0148c7b1fc62a01e272c3401 (diff)
downloadminetest-c78aa7cf24a568bd14d3ff1dfaaca9356a02666a.tar.gz
minetest-c78aa7cf24a568bd14d3ff1dfaaca9356a02666a.tar.bz2
minetest-c78aa7cf24a568bd14d3ff1dfaaca9356a02666a.zip
Fix HUD not visible if below ground blacked out
Diffstat (limited to 'src/drawscene.cpp')
-rw-r--r--src/drawscene.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drawscene.cpp b/src/drawscene.cpp
index f7b916a8c..a69cf4403 100644
--- a/src/drawscene.cpp
+++ b/src/drawscene.cpp
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "main.h" // for g_settings
#include "settings.h"
#include "clouds.h"
+#include "clientmap.h"
#include "util/timetaker.h"
typedef enum {
@@ -458,6 +459,14 @@ void draw_scene(video::IVideoDriver* driver, scene::ISceneManager* smgr,
draw_plain(camera, show_hud, hud, hilightboxes, driver,
draw_wield_tool, client, guienv);
}
+
+ /*
+ Post effects
+ */
+ {
+ client.getEnv().getClientMap().renderPostFx(camera.getCameraMode());
+ }
+
//TODO how to make those 3d too
if (show_hud)
{