From c78aa7cf24a568bd14d3ff1dfaaca9356a02666a Mon Sep 17 00:00:00 2001 From: sapier Date: Thu, 12 Jun 2014 23:38:34 +0200 Subject: Fix HUD not visible if below ground blacked out --- src/drawscene.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/drawscene.cpp') 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) { -- cgit v1.2.3