Better sector null checks
This commit is contained in:
@@ -80,7 +80,7 @@ public class GameOverDialog extends FloatingDialog{
|
||||
}
|
||||
}
|
||||
|
||||
if(state.isCampaign()){
|
||||
if(state.hasSector()){
|
||||
RankResult result = state.stats.calculateRank(state.getSector(), state.launched);
|
||||
t.add(Core.bundle.format("stat.rank", result.rank + result.modifier));
|
||||
t.row();
|
||||
|
||||
@@ -497,7 +497,7 @@ public class HudFragment extends Fragment{
|
||||
}
|
||||
|
||||
private boolean inLaunchWave(){
|
||||
return state.isCampaign() &&
|
||||
return state.hasSector() &&
|
||||
state.getSector().metCondition() &&
|
||||
!net.client() &&
|
||||
state.wave % state.getSector().launchPeriod == 0 && !spawner.isSpawning();
|
||||
|
||||
Reference in New Issue
Block a user