Skip to content

Commit

Permalink
Fix QRTZ killing life=0 PHOT, fixes #415
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed May 10, 2017
1 parent b9c658a commit b0f3b2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/simulation/elements/PHOT.cpp
Expand Up @@ -86,7 +86,8 @@ int Element_PHOT::update(UPDATE_FUNC_ARGS)
parts[i].vy = 3.0f*sinf(a);
if(parts[i].ctype == 0x3FFFFFFF)
parts[i].ctype = 0x1F<<(rand()%26);
parts[i].life++; //Delay death
if (parts[i].life)
parts[i].life++; //Delay death
}
else if((r&0xFF) == PT_BGLA && !ry && !rx)//if on BGLA
{
Expand Down

0 comments on commit b0f3b2a

Please sign in to comment.