Skip to content

Commit

Permalink
Fix flora showing as black when deferred rendering is disabled (when …
Browse files Browse the repository at this point in the history
…effects/mem/vid settings are on lowest). Instead just don't render them at all.
  • Loading branch information
Sandern committed May 9, 2014
1 parent 196a38f commit efb6612
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/shared/lambdawars/wars_flora.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "c_basetempentity.h"
#define CBaseTempEntity C_BaseTempEntity
#define CTEIgniteFlora C_TEIgniteFlora
#include "deferred/deferred_shared_common.h"
#else
#include "hl2wars_player.h"
#endif // CLIENT_DLL
Expand Down Expand Up @@ -660,6 +661,9 @@ const char *CWarsFlora::ParseEntity( const char *pEntData )
//-----------------------------------------------------------------------------
void CWarsFlora::SpawnMapFlora()
{
if( GetDeferredManager()->IsDeferredRenderingEnabled() == false )
return;

const char *pMapData = engine->GetMapEntitiesString();
if( !pMapData )
{
Expand Down

0 comments on commit efb6612

Please sign in to comment.