fix clear_projectile affecting PlrProj if force == true

This commit is contained in:
Andrei Alexeyev 2018-01-09 20:52:46 +02:00
parent f4ef527528
commit c2fc94f125
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -436,7 +436,7 @@ Projectile* spawn_projectile_clear_effect(Projectile *proj) {
}
bool clear_projectile(Projectile **projlist, Projectile *proj, bool force, bool now) {
if(!force && !projectile_is_clearable(proj)) {
if(proj->type >= PlrProj || (!force && !projectile_is_clearable(proj))) {
return false;
}