[fixes #997] Update bottomStageNumber

The bottomStage.getStageNumber() was called, but never assigned to bottomStageNumber. Now it is. This has the effect that the exhaust effects will start at the bottom stage instead of on the top stage, which was previously the case.
This commit is contained in:
Sibo Van Gool 2022-01-11 23:49:19 +01:00
parent affcc8b51f
commit 2184cc80e0

View File

@ -422,7 +422,7 @@ public class PhotoPanel extends JPanel implements GLEventListener {
AxialStage bottomStage = configuration.getBottomStage();
int bottomStageNumber = 0;
if (bottomStage != null)
bottomStage.getStageNumber();
bottomStageNumber = bottomStage.getStageNumber();
//final int currentStageNumber = configuration.getActiveStages()[configuration.getActiveStages().length-1];
//final AxialStage currentStage = (AxialStage)configuration.getRocket().getChild( bottomStageNumber);