diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-08-03 04:00:12 +0300 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-08-03 16:00:32 +0300 |
commit | e14252914e9bd4cf7702479b5e0b050b935ba4aa (patch) | |
tree | df42291b9b6745f86097de4d58fc55e6a64b1b8c /src/render/Renderer.cpp | |
parent | a786dd45a4ebc6b91936b5e46d0ef0a9befc05af (diff) |
Squeeze performance option, minor fixes
Fixes are already in miami
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r-- | src/render/Renderer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 88d412c9..717021a7 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -73,8 +73,12 @@ CRenderer::PreRender(void) for(i = 0; i < ms_nNoOfVisibleEntities; i++) ms_aVisibleEntityPtrs[i]->PreRender(); - for(i = 0; i < ms_nNoOfInVisibleEntities; i++) + for (i = 0; i < ms_nNoOfInVisibleEntities; i++) { +#ifdef SQUEEZE_PERFORMANCE + if (ms_aInVisibleEntityPtrs[i]->IsVehicle() && ((CVehicle*)ms_aInVisibleEntityPtrs[i])->IsHeli()) +#endif ms_aInVisibleEntityPtrs[i]->PreRender(); + } for(node = CVisibilityPlugins::m_alphaEntityList.head.next; node != &CVisibilityPlugins::m_alphaEntityList.tail; |