Skip to content

Commit

Permalink
added iuse double for windpower
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpwbrown committed Jan 27, 2019
1 parent bad01cc commit ac06826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bionics.cpp
Expand Up @@ -492,7 +492,7 @@ bool player::activate_bionic( int b, bool eff_only )
const auto player_local_temp = g->get_temperature( g->u.pos() );
/* windpower defined in internal velocity units (=.01 mph) */
double windpower = 100.0f * get_local_windpower( weatherPoint.windpower + vehwindspeed,
cur_om_ter, g->is_sheltered( g->u.pos() ) );
cur_om_ter, g->u.pos(), g->is_sheltered( g->u.pos() ) );
add_msg_if_player( m_info, _( "Temperature: %s." ),
print_temperature( player_local_temp ).c_str() );
add_msg_if_player( m_info, _( "Relative Humidity: %s." ),
Expand Down
4 changes: 2 additions & 2 deletions src/iuse.cpp
Expand Up @@ -7357,8 +7357,8 @@ int iuse::weather_tool( player *p, item *it, bool, const tripoint & )
}
const oter_id &cur_om_ter = overmap_buffer.ter( p->global_omt_location() );
/* windpower defined in internal velocity units (=.01 mph) */
int windpower = int( 100.0f * get_local_windpower( weatherPoint.windpower + vehwindspeed,
cur_om_ter, g->is_sheltered( g->u.pos() ) ) );
double windpower = int( 100.0f * get_local_windpower( weatherPoint.windpower + vehwindspeed,
cur_om_ter, g->u.pos(), g->is_sheltered( g->u.pos() ) ) );

p->add_msg_if_player( m_neutral, _( "Wind Speed: %.1f %s." ),
convert_velocity( windpower, VU_WIND ),
Expand Down

0 comments on commit ac06826

Please sign in to comment.