Skip to content

Commit

Permalink
fix wrong temp-delta conversion for windchill message (#79274)
Browse files Browse the repository at this point in the history
Co-authored-by: marilynias <marilynias57+github@gmail.com>
  • Loading branch information
marilynias and marilynias authored Jan 22, 2025
1 parent 77480fd commit e22281c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/character_body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ void Character::update_bodytemp()
add_msg( m_bad,
_( "The wind is very strong; you should find some more wind-resistant clothing for your %s." ),
body_part_name( bp ) );
} else if( conv_temp <= BODYTEMP_COLD && windchill < units::from_kelvin_delta( -30 ) &&
} else if( conv_temp <= BODYTEMP_COLD && windchill < units::from_fahrenheit_delta( -30 ) &&
one_in( 50 ) ) {
add_msg( m_bad, _( "Your clothing is not providing enough protection from the wind for your %s!" ),
body_part_name( bp ) );
Expand Down

0 comments on commit e22281c

Please sign in to comment.