16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

option to disable cab rendering

This commit is contained in:
milek7
2019-03-19 00:03:03 +01:00
parent 62a3d2f92c
commit d0f4be6616
3 changed files with 7 additions and 0 deletions

View File

@@ -2280,6 +2280,8 @@ bool opengl_renderer::Render(TDynamicObject *Dynamic)
// rendering kabiny gdy jest oddzielnym modelem i ma byc wyswietlana
bool opengl_renderer::Render_cab(TDynamicObject const *Dynamic, float const Lightlevel, bool const Alpha)
{
if (!Global.render_cab)
return false;
if (Dynamic == nullptr)
{