Fix the test for recovery deplyed under thrust.

This commit is contained in:
Kevin Ruland 2016-03-24 17:34:13 -05:00
parent 3efce7e8c5
commit 5a79c210cd

View File

@ -440,12 +440,10 @@ public class BasicEventSimulationEngine implements SimulationEngine {
// TODO: HIGH: Check stage activeness for other events as well?
// Check whether any motor in the active stages is active anymore
Collection<MotorConfiguration> activeMotors = currentStatus.getConfiguration().getActiveMotors();
for (MotorConfiguration curMotor : activeMotors) {
RocketComponent comp = ((RocketComponent) curMotor.getMount());
int stageNumber = comp.getStageNumber();
if (!currentStatus.getConfiguration().isStageActive(stageNumber))
for (MotorClusterState state : currentStatus.getActiveMotors() ) {
if ( state.isSpent() ) {
continue;
}
currentStatus.getWarnings().add(Warning.RECOVERY_DEPLOYMENT_WHILE_BURNING);
}