minimal weather stuff + multiple bugfixes

This commit is contained in:
Nikolay Korolev 2020-05-16 13:31:23 +03:00
parent 9067469f7c
commit 4defd8b75c
9 changed files with 146 additions and 91 deletions

View file

@ -143,7 +143,8 @@ CRenderer::RenderOneNonRoad(CEntity *e)
resetLights = e->SetupLighting();
if(e->IsVehicle()){
CVisibilityPlugins::SetupVehicleVariables(e->GetClump());
// unfortunately can't use GetClump here
CVisibilityPlugins::SetupVehicleVariables((RpClump*)e->m_rwObject);
CVisibilityPlugins::InitAlphaAtomicList();
}