Skip to content

Commit

Permalink
Merge pull request #33272 from Raschert0/ReloadTimeFix
Browse files Browse the repository at this point in the history
Fixed incorrect display of reload time for guns and magazines
  • Loading branch information
ZhilkinSerg authored Aug 16, 2019
2 parents f8e812b + cc74502 commit 7e04972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ std::string item::info( std::vector<iteminfo> &info, const iteminfo_query *parts
}
if( parts->test( iteminfo_parts::MAGAZINE_RELOAD ) ) {
info.emplace_back( "MAGAZINE", _( "Reload time: " ), _( "<num> per round" ),
iteminfo::lower_is_better, type->magazine->reload_time );
iteminfo::lower_is_better, type->magazine->reload_time / 100 );
}
insert_separation_line();
}
Expand Down Expand Up @@ -1688,7 +1688,7 @@ std::string item::info( std::vector<iteminfo> &info, const iteminfo_query *parts
info.emplace_back( "GUN", _( "Reload time: " ),
has_flag( "RELOAD_ONE" ) ? _( "<num> seconds per round" ) : _( "<num> seconds" ),
iteminfo::lower_is_better,
static_cast<int>( mod->get_reload_time() / 16.67 ) );
mod->get_reload_time() / 100 );
}

if( parts->test( iteminfo_parts::GUN_FIRE_MODES ) ) {
Expand Down

0 comments on commit 7e04972

Please sign in to comment.