18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 16:55:10 +01:00

fix: the diesel throttle marker follows the controller only with a scaletable:

A mainctrlact: without a scaletable: (the shipped ST43 cabs) keeps its marker still, as before, instead of sweeping on an unchecked linear scale. A gauge redefined in the fixed form drops the scaletable: of its earlier definition.
This commit is contained in:
jerrrrycho
2026-11-08 17:45:01 +01:00
parent cf2092700e
commit dc4cc45769
5 changed files with 44 additions and 16 deletions

View File

@@ -112,6 +112,8 @@ void TGauge::Load( cParser &Parser, TDynamicObject const *Owner, double const mu
Parser.getTokens();
if( Parser.peek() != "{" ) {
// old fixed size config
// it has no scaletable:, drop the one of an earlier definition of the same control
m_scaletable.clear();
Parser >> submodelname;
gaugetypename = Parser.getToken<std::string>( true );
Parser.getTokens( 3, false );