mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-30 17:40:47 +00:00
Fixing the spawning of Supply centers
They were removed by accident, adding them back in.
This commit is contained in:
parent
950cb43f4c
commit
12983d6164
2 changed files with 5 additions and 8 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue