Fix QRTZ killing life=0 PHOT, fixes #415
This commit is contained in:
parent
b9c658ae20
commit
b0f3b2a36b
@ -86,6 +86,7 @@ int Element_PHOT::update(UPDATE_FUNC_ARGS)
|
|||||||
parts[i].vy = 3.0f*sinf(a);
|
parts[i].vy = 3.0f*sinf(a);
|
||||||
if(parts[i].ctype == 0x3FFFFFFF)
|
if(parts[i].ctype == 0x3FFFFFFF)
|
||||||
parts[i].ctype = 0x1F<<(rand()%26);
|
parts[i].ctype = 0x1F<<(rand()%26);
|
||||||
|
if (parts[i].life)
|
||||||
parts[i].life++; //Delay death
|
parts[i].life++; //Delay death
|
||||||
}
|
}
|
||||||
else if((r&0xFF) == PT_BGLA && !ry && !rx)//if on BGLA
|
else if((r&0xFF) == PT_BGLA && !ry && !rx)//if on BGLA
|
||||||
|
Reference in New Issue
Block a user