Fixing the spawning of Supply centers

They were removed by accident, adding them back in.
This commit is contained in:
Tyler Marques 2025-03-20 14:09:25 -04:00
parent 950cb43f4c
commit 12983d6164
No known key found for this signature in database
GPG key ID: 7672EFD79378341C
2 changed files with 5 additions and 8 deletions

View file

@ -43,10 +43,6 @@ export function displayPhase(skipMessages = false) {
}, 300);
}
// Clear existing units except supply centers
const supplyCenters = gameState.unitMeshes.filter(m => m.userData && m.userData.isSupplyCenter);
const oldUnits = gameState.unitMeshes.filter(m => m.userData && !m.userData.isSupplyCenter);
// Update supply centers
if (currentPhase.state?.centers) {
updateSupplyCenterOwnership(currentPhase.state.centers);
@ -188,5 +184,5 @@ function moveToNextPhase() {
}
// Display the next phase and start showing its messages
displayPhaseWithAnimation(gameState.phaseIndex);
displayPhaseWithAnimation();
}