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

vehicle configuration ai hints section, pantograph setup ai hint, vehicle screens drawing optimization

This commit is contained in:
tmj-fstate
2020-02-21 22:20:10 +01:00
parent d1df65f737
commit 7ba6383c75
4 changed files with 63 additions and 29 deletions

View File

@@ -6908,7 +6908,8 @@ bool TTrain::Update( double const Deltatime )
}
// screens
fScreenTimer += Deltatime;
if( ( fScreenTimer > Global.PythonScreenUpdateRate * 0.001f )
if( ( this == simulation::Train ) // no point in drawing screens for vehicles other than our own
&& ( fScreenTimer > Global.PythonScreenUpdateRate * 0.001f )
&& ( false == FreeFlyModeFlag ) ) { // don't bother if we're outside
fScreenTimer = 0.f;
for( auto const &screen : m_screens ) {