File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient
Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -399,8 +399,7 @@ void RTS3DScene::Visibility_Check(CameraClass * camera)
399
399
m_translucentObjectsCount=0 ;
400
400
m_numNonOccluderOrOccludee=0 ;
401
401
402
- Int currentFrame=0 ;
403
- if (TheGameLogic) currentFrame = TheGameLogic->getFrame ();
402
+ Int currentFrame=TheGameLogic->getFrame ();
404
403
if (currentFrame <= TheGlobalData->m_defaultOcclusionDelay )
405
404
currentFrame = TheGlobalData->m_defaultOcclusionDelay +1 ; // make sure occlusion is enabled when game starts (frame 0).
406
405
Original file line number Diff line number Diff line change @@ -415,8 +415,7 @@ void RTS3DScene::Visibility_Check(CameraClass * camera)
415
415
m_translucentObjectsCount=0 ;
416
416
m_numNonOccluderOrOccludee=0 ;
417
417
418
- Int currentFrame=0 ;
419
- if (TheGameLogic) currentFrame = TheGameLogic->getFrame ();
418
+ Int currentFrame=TheGameLogic->getFrame ();
420
419
if (currentFrame <= TheGlobalData->m_defaultOcclusionDelay )
421
420
currentFrame = TheGlobalData->m_defaultOcclusionDelay +1 ; // make sure occlusion is enabled when game starts (frame 0).
422
421
You can’t perform that action at this time.
0 commit comments