Fixed auto-unlock for campaign sectors
This commit is contained in:
Binary file not shown.
@@ -160,7 +160,7 @@ public class Control implements ApplicationListener, Loadable{
|
|||||||
});
|
});
|
||||||
|
|
||||||
Events.on(SectorCaptureEvent.class, e -> {
|
Events.on(SectorCaptureEvent.class, e -> {
|
||||||
checkAutoUnlocks();
|
app.post(this::checkAutoUnlocks);
|
||||||
});
|
});
|
||||||
|
|
||||||
//delete save on campaign game over
|
//delete save on campaign game over
|
||||||
@@ -303,7 +303,7 @@ public class Control implements ApplicationListener, Loadable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Automatically unlocks things with no requirements and no locked parents. */
|
/** Automatically unlocks things with no requirements and no locked parents. */
|
||||||
void checkAutoUnlocks(){
|
public void checkAutoUnlocks(){
|
||||||
if(net.client()) return;
|
if(net.client()) return;
|
||||||
|
|
||||||
for(TechNode node : TechTree.all){
|
for(TechNode node : TechTree.all){
|
||||||
|
|||||||
@@ -318,6 +318,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
void lookAt(Sector sector){
|
void lookAt(Sector sector){
|
||||||
if(sector.tile == Ptile.empty) return;
|
if(sector.tile == Ptile.empty) return;
|
||||||
|
|
||||||
|
state.planet = sector.planet;
|
||||||
state.camPos.set(Tmp.v33.set(sector.tile.v).rotate(Vec3.Y, -sector.planet.getRotation()));
|
state.camPos.set(Tmp.v33.set(sector.tile.v).rotate(Vec3.Y, -sector.planet.getRotation()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user