mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 12:29:18 +02:00
build 180928. heater sound, minor precipitation tweaks, minor bug fixes
This commit is contained in:
@@ -209,7 +209,7 @@ void
|
||||
TGauge::UpdateValue( float fNewDesired, sound_source *Fallbacksound ) {
|
||||
|
||||
auto const desiredtimes100 = static_cast<int>( std::round( 100.0 * fNewDesired ) );
|
||||
if( desiredtimes100 == static_cast<int>( 100.0 * m_targetvalue ) ) {
|
||||
if( desiredtimes100 == static_cast<int>( std::round( 100.0 * m_targetvalue ) ) ) {
|
||||
return;
|
||||
}
|
||||
m_targetvalue = fNewDesired;
|
||||
|
||||
Reference in New Issue
Block a user