Skip to content

Commit

Permalink
refactor: use milidegree_celsius
Browse files Browse the repository at this point in the history
discussed in: cataclysmbnteam#2570 (comment)

Co-authored-by: Coolthulhu <[email protected]>
  • Loading branch information
scarf005 and Coolthulhu committed Apr 6, 2023
1 parent 64f7642 commit 1cecb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/player_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static std::array<units::temperature, bodytemps.size()> find_temperature_points(
std::vector<temperatures_wrapper> all_converged_temperatures;
all_converged_temperatures.resize( max_air_temp - min_air_temp, temperatures_wrapper( {} ) );
for( int i = min_air_temp; i < max_air_temp; i++ ) {
get_weather().temperature = units::from_fahrenheit( i );
get_weather().temperature = units::from_millidegree_celsius( i * 500 );
get_weather().clear_temp_cache();
all_converged_temperatures[i - min_air_temp] = converge_temperature( p, 10000 );
int converged_torso_temp = all_converged_temperatures[i - min_air_temp][0];
Expand Down

0 comments on commit 1cecb8b

Please sign in to comment.