Minor game mode fixes

This commit is contained in:
parax0 2016-01-06 06:44:17 -07:00
parent c7d8e47d73
commit 7eeb90b925
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ void CScene::AddSceneToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo)
std::vector<CSceneNode*>& rNodeVec = it->second; std::vector<CSceneNode*>& rNodeVec = it->second;
for (u32 iNode = 0; iNode < rNodeVec.size(); iNode++) for (u32 iNode = 0; iNode < rNodeVec.size(); iNode++)
if (rNodeVec[iNode]->IsVisible()) if (ViewInfo.GameMode || rNodeVec[iNode]->IsVisible())
rNodeVec[iNode]->AddToRenderer(pRenderer, ViewInfo); rNodeVec[iNode]->AddToRenderer(pRenderer, ViewInfo);
} }
} }

View File

@ -48,7 +48,7 @@ void CStaticNode::Draw(FRenderOptions Options, int ComponentIndex, const SViewIn
{ {
if (!mpModel) return; if (!mpModel) return;
bool IsLightingEnabled = CGraphics::sLightMode == CGraphics::eWorldLighting; bool IsLightingEnabled = CGraphics::sLightMode == CGraphics::eWorldLighting || ViewInfo.GameMode;
CGraphics::sVertexBlock.COLOR0_Amb = (IsLightingEnabled ? CColor::skBlack : CColor::skWhite); CGraphics::sVertexBlock.COLOR0_Amb = (IsLightingEnabled ? CColor::skBlack : CColor::skWhite);
float Mul = CGraphics::sWorldLightMultiplier; float Mul = CGraphics::sWorldLightMultiplier;
CGraphics::sPixelBlock.TevColor = CColor(Mul,Mul,Mul); CGraphics::sPixelBlock.TevColor = CColor(Mul,Mul,Mul);