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

reformat: remove redundant qualifiers

This commit is contained in:
jerrrrycho
2026-07-04 05:34:23 +02:00
parent 20e7a99516
commit cf9fb07800
98 changed files with 2290 additions and 2290 deletions

View File

@@ -215,8 +215,8 @@ fixedstep_modifier<Type_>::update( Type_ &Variable, double const Timedelta ) con
m_valuechange / *( m_valuechangemodifier ) ) };
Variable += ( valuechange * static_cast<float>( Timedelta ) );
// clamp down to allowed value range
Variable = glm::max( Variable, m_valuelimits[ value_limit::min ] );
Variable = glm::min( Variable, m_valuelimits[ value_limit::max ] );
Variable = glm::max( Variable, m_valuelimits[ min ] );
Variable = glm::min( Variable, m_valuelimits[ max ] );
}
template <typename Type_>
@@ -227,8 +227,8 @@ fixedstep_modifier<Type_>::deserialize( cParser &Input ) {
std::unordered_map<std::string, Type_ &> const variablemap {
{ "step:", m_valuechange },
{ "min:", m_valuelimits[ value_limit::min ] },
{ "max:", m_valuelimits[ value_limit::max ] } };
{ "min:", m_valuelimits[ min ] },
{ "max:", m_valuelimits[ max ] } };
std::string key;