File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -13686,14 +13686,12 @@ int ship_do_rearm_frame( object *objp, float frametime )
1368613686 }
1368713687
1368813688 // figure out repairs for subsystems
13689- if(repair_allocated > 0) {
13690- if(sip->sup_subsys_repair_rate == 0.0f)
13691- repair_allocated = 0.0f;
13692- else if(sip->sup_hull_repair_rate == 0.0f)
13693- repair_allocated = shipp->ship_max_hull_strength * frametime * sip->sup_subsys_repair_rate;
13694- else if(!(sip->sup_hull_repair_rate == sip->sup_subsys_repair_rate))
13695- repair_allocated = repair_allocated * sip->sup_subsys_repair_rate / sip->sup_hull_repair_rate;
13696- }
13689+ if(sip->sup_subsys_repair_rate == 0.0f)
13690+ repair_allocated = 0.0f;
13691+ else if(sip->sup_hull_repair_rate == 0.0f)
13692+ repair_allocated = shipp->ship_max_hull_strength * frametime * sip->sup_subsys_repair_rate;
13693+ else if(!(sip->sup_hull_repair_rate == sip->sup_subsys_repair_rate))
13694+ repair_allocated = repair_allocated * sip->sup_subsys_repair_rate / sip->sup_hull_repair_rate;
1369713695
1369813696 // check the subsystems of the ship.
1369913697 subsys_all_ok = 1;
You can’t perform that action at this time.
0 commit comments