don't tick towers in play/game over state

This commit is contained in:
Evert Prants 2017-08-22 12:08:12 +03:00
parent 818971ccdb
commit 87aea4bd6f
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -603,7 +603,11 @@ window.onload = function () {
fpsDraw = fps fpsDraw = fps
} }
tickTowers() // Only tick towers when the game is in the play state
if (Game.state === 1) {
tickTowers()
}
updateEnemyMovements() updateEnemyMovements()
tickParticles() tickParticles()
tickSellText() tickSellText()