Spawning bug fix.

Variable spawnTimePassed was not being decremented correctly.