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

maintenance: removed deprecated code from speed table

This commit is contained in:
tmj-fstate
2017-05-05 19:19:26 +02:00
parent 4977f0da17
commit 381eff2e8c
3 changed files with 15 additions and 226 deletions

View File

@@ -1916,7 +1916,7 @@ TWorld::Update_UI() {
+ " VRd=" + to_string( tmp->Mechanik->VelRoad, 0 );
if( ( tmp->Mechanik->VelNext == 0.0 )
&& ( tmp->Mechanik->eSignNext ) ) {
&& ( tmp->Mechanik->eSignNext ) ) {
// jeśli ma zapamiętany event semafora, nazwa eventu semafora
uitextline4 +=
" ("
@@ -1935,7 +1935,7 @@ TWorld::Update_UI() {
break;
}
std::size_t i = 0; std::size_t const speedtablesize = std::min( 30, std::max( 0, static_cast<int>(tmp->Mechanik->TableSize()) - 1 ) );
std::size_t i = 0; std::size_t const speedtablesize = clamp( static_cast<int>( tmp->Mechanik->TableSize() ) - 1, 0, 30 );
do {
std::string scanline = tmp->Mechanik->TableText( i );
if( scanline.empty() ) { break; }