Remove unused energy center capacity tracking
This commit is contained in:
parent
8eab601e44
commit
0df3209fad
|
@ -530,21 +530,10 @@ static void robotmaker_proc( FuelCenter * robotcen )
|
||||||
// Called once per frame, replenishes fuel supply.
|
// Called once per frame, replenishes fuel supply.
|
||||||
void fuelcen_update_all()
|
void fuelcen_update_all()
|
||||||
{
|
{
|
||||||
fix AmountToreplenish;
|
|
||||||
AmountToreplenish = fixmul(FrameTime,Fuelcen_refill_speed);
|
|
||||||
|
|
||||||
for (uint_fast32_t i = 0; i < Num_fuelcenters; i++ ) {
|
for (uint_fast32_t i = 0; i < Num_fuelcenters; i++ ) {
|
||||||
if ( Station[i].Type == SEGMENT_IS_ROBOTMAKER ) {
|
if ( Station[i].Type == SEGMENT_IS_ROBOTMAKER ) {
|
||||||
if (! (Game_suspended & SUSP_ROBOTS))
|
if (! (Game_suspended & SUSP_ROBOTS))
|
||||||
robotmaker_proc( &Station[i] );
|
robotmaker_proc( &Station[i] );
|
||||||
} else if ( (Station[i].MaxCapacity > 0) && (PlayerSegment!=&Segments[Station[i].segnum]) ) {
|
|
||||||
if ( Station[i].Capacity < Station[i].MaxCapacity ) {
|
|
||||||
Station[i].Capacity += AmountToreplenish;
|
|
||||||
if ( Station[i].Capacity >= Station[i].MaxCapacity ) {
|
|
||||||
Station[i].Capacity = Station[i].MaxCapacity;
|
|
||||||
//gauge_message( "Fuel center is fully recharged! " );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue