Fix HUD not visible if below ground blacked out

This commit is contained in:
sapier 2014-06-12 23:38:34 +02:00
parent d7986da58c
commit c78aa7cf24
2 changed files with 102 additions and 100 deletions

View File

@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "main.h" // for g_settings #include "main.h" // for g_settings
#include "settings.h" #include "settings.h"
#include "clouds.h" #include "clouds.h"
#include "clientmap.h"
#include "util/timetaker.h" #include "util/timetaker.h"
typedef enum { typedef enum {
@ -458,6 +459,14 @@ void draw_scene(video::IVideoDriver* driver, scene::ISceneManager* smgr,
draw_plain(camera, show_hud, hud, hilightboxes, driver, draw_plain(camera, show_hud, hud, hilightboxes, driver,
draw_wield_tool, client, guienv); draw_wield_tool, client, guienv);
} }
/*
Post effects
*/
{
client.getEnv().getClientMap().renderPostFx(camera.getCameraMode());
}
//TODO how to make those 3d too //TODO how to make those 3d too
if (show_hud) if (show_hud)
{ {

View File

@ -3364,13 +3364,6 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
draw_scene(driver, smgr, camera, client, player, hud, guienv, draw_scene(driver, smgr, camera, client, player, hud, guienv,
hilightboxes, screensize, skycolor, show_hud); hilightboxes, screensize, skycolor, show_hud);
/*
Post effects
*/
{
client.getEnv().getClientMap().renderPostFx(camera.getCameraMode());
}
/* /*
Profiler graph Profiler graph
*/ */