Permalink
Browse files

Adds minireactor to electrical power calculation

  • Loading branch information...
peperov committed Jan 3, 2019
1 parent ae8e456 commit 37d2ec677f21d47c573e41d735ba47aa16f5b1c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/vehicle_display.cpp
@@ -403,7 +403,7 @@ void vehicle::print_fuel_indicator( const catacurses::window &win, int y, int x,
rate = consumption_per_hour( fuel_type, fuel_data->second );
units = _( "mL" );
} else if( fuel_type == itype_id( "battery" ) ) {
rate = power_to_energy_bat( total_epower_w(), 3600 );
rate = power_to_energy_bat( total_epower_w() + total_reactor_epower_w(), 3600 );
units = _( "kJ" );
}
if( rate != 0 ) {

0 comments on commit 37d2ec6

Please sign in to comment.