Skip to content

Commit 4efc6f9

Browse files
committed
cheese spawn 5 cheese showing up as 10 fix
1 parent 97e2c0f commit 4efc6f9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

engine/src/main/battlecode/world/GameWorld.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,15 @@ public void spawnCheese(CheeseMine mine) {
509509
// corresponding one
510510

511511
if (spawn) {
512-
addCheese(ogSpawnLoc, GameConstants.CHEESE_SPAWN_AMOUNT);
513-
addCheese(pairedSpawnLoc, GameConstants.CHEESE_SPAWN_AMOUNT);
514512

515513
mine.setLastRound(this.currentRound);
516514
pairedMine.setLastRound(this.currentRound);
517515

518516
matchMaker.addCheeseSpawnAction(ogSpawnLoc, GameConstants.CHEESE_SPAWN_AMOUNT + this.getCheeseAmount(ogSpawnLoc));
519517
matchMaker.addCheeseSpawnAction(pairedSpawnLoc, GameConstants.CHEESE_SPAWN_AMOUNT + this.getCheeseAmount(pairedSpawnLoc));
518+
519+
addCheese(ogSpawnLoc, GameConstants.CHEESE_SPAWN_AMOUNT);
520+
addCheese(pairedSpawnLoc, GameConstants.CHEESE_SPAWN_AMOUNT);
520521
}
521522

522523
}

0 commit comments

Comments
 (0)