Allow Universe to update all solar systems (#8647)
This commit is contained in:
@@ -38,8 +38,10 @@ public class Universe{
|
|||||||
|
|
||||||
/** Update regardless of whether the player is in the campaign. */
|
/** Update regardless of whether the player is in the campaign. */
|
||||||
public void updateGlobal(){
|
public void updateGlobal(){
|
||||||
//currently only updates one solar system
|
for(Planet planet : content.planets()){
|
||||||
updatePlanet(Planets.sun);
|
//update all parentless planets (solar system root), regardless of which one the player is in
|
||||||
|
if(planet.parent == null) updatePlanet(planet);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int turn(){
|
public int turn(){
|
||||||
|
|||||||
Reference in New Issue
Block a user