Skip to content

Commit

Permalink
Fix HUD not visible if below ground blacked out
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed Jun 12, 2014
1 parent d7986da commit c78aa7c
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 100 deletions.
9 changes: 9 additions & 0 deletions src/drawscene.cpp
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit c78aa7c

Please sign in to comment.