Skip to content

Commit

Permalink
emitter life issue fixed (#133)
Browse files Browse the repository at this point in the history
Co-authored-by: serglider <[email protected]>
  • Loading branch information
serglider and serglider authored May 1, 2020
1 parent 526bf74 commit b4f4b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ export class Emitter
while(this._spawnTimer <= 0)
{
//determine if the emitter should stop spawning
if(this._emitterLife > 0)
if(this._emitterLife >= 0)
{
this._emitterLife -= this._frequency;
if(this._emitterLife <= 0)
Expand Down

0 comments on commit b4f4b07

Please sign in to comment.