mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 04:39:18 +02:00
Merge branch 'milek-dev' into gfx-work
This commit is contained in:
@@ -750,16 +750,13 @@ debug_panel::update_vehicle_brake() const {
|
||||
void
|
||||
debug_panel::update_section_engine( std::vector<text_line> &Output ) {
|
||||
|
||||
if( m_input.train == nullptr ) { return; }
|
||||
if( m_input.vehicle == nullptr ) { return; }
|
||||
if( m_input.mover == nullptr ) { return; }
|
||||
|
||||
auto const &train { *m_input.train };
|
||||
auto const &vehicle{ *m_input.vehicle };
|
||||
auto const &mover{ *m_input.mover };
|
||||
|
||||
// engine data
|
||||
// induction motor data
|
||||
// induction motor data
|
||||
if( mover.EngineType == TEngineType::ElectricInductionMotor ) {
|
||||
|
||||
Output.emplace_back( " eimc: eimv: press:", Global.UITextColor );
|
||||
@@ -771,7 +768,10 @@ debug_panel::update_section_engine( std::vector<text_line> &Output ) {
|
||||
+ mover.eimv_labels[ i ] + to_string( mover.eimv[ i ], 2, 9 );
|
||||
|
||||
if( i < 10 ) {
|
||||
parameters += " | " + train.fPress_labels[ i ] + to_string( train.fPress[ i ][ 0 ], 2, 9 );
|
||||
parameters +=
|
||||
( ( m_input.train != nullptr ) && ( m_input.train->Dynamic() == m_input.vehicle ) ?
|
||||
" | " + TTrain::fPress_labels[ i ] + to_string( m_input.train->fPress[ i ][ 0 ], 2, 9 ) :
|
||||
"" );
|
||||
}
|
||||
else if( i == 12 ) {
|
||||
parameters += " med:";
|
||||
|
||||
Reference in New Issue
Block a user