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

build 190119. minor diagnostics enhancement, minor ai enhancement, minor bug fixes

This commit is contained in:
tmj-fstate
2019-01-19 14:33:39 +01:00
parent cfc35ee32e
commit 330e52d4fc
6 changed files with 40 additions and 27 deletions

View File

@@ -6433,7 +6433,7 @@ bool TTrain::LoadMMediaFile(std::string const &asFileName)
rsRunningNoise.deserialize( parser, sound_type::single, sound_parameters::amplitude | sound_parameters::frequency, mvOccupied->Vmax );
rsRunningNoise.owner( DynamicObject );
rsRunningNoise.m_amplitudefactor /= ( 1 + mvOccupied->Vmax );
// rsRunningNoise.m_amplitudefactor /= ( 1 + mvOccupied->Vmax );
rsRunningNoise.m_frequencyfactor /= ( 1 + mvOccupied->Vmax );
}
else if( token == "huntingnoise:" ) {
@@ -6441,7 +6441,7 @@ bool TTrain::LoadMMediaFile(std::string const &asFileName)
rsHuntingNoise.deserialize( parser, sound_type::single, sound_parameters::amplitude | sound_parameters::frequency, mvOccupied->Vmax );
rsHuntingNoise.owner( DynamicObject );
rsHuntingNoise.m_amplitudefactor /= ( 1 + mvOccupied->Vmax );
// rsHuntingNoise.m_amplitudefactor /= ( 1 + mvOccupied->Vmax );
rsHuntingNoise.m_frequencyfactor /= ( 1 + mvOccupied->Vmax );
}
@@ -7359,7 +7359,7 @@ void TTrain::set_cab_controls( int const Cab ) {
if (ggBrakeOperationModeCtrl.SubModel != nullptr) {
ggBrakeOperationModeCtrl.PutValue(
(mvOccupied->BrakeOpModeFlag > 0 ?
log2(mvOccupied->BrakeOpModeFlag) :
std::log2(mvOccupied->BrakeOpModeFlag) :
0));
}
// alarm chain