VOID & PVOD can be set to only eat/not eat certain things

This commit is contained in:
Jacob1 2012-05-24 14:07:31 -04:00
parent 9a179651ee
commit 1fb7787243

View File

@ -344,7 +344,8 @@ int try_move(int i, int x, int y, int nx, int ny)
}
if ((r&0xFF)==PT_VOID || (r&0xFF)==PT_PVOD) //this is where void eats particles
{
kill_part(i);
if(!parts[r>>8].ctype || (parts[r>>8].ctype==parts[i].type)!=(parts[r>>8].tmp&1))
kill_part(i);
return 0;
}
if ((r&0xFF)==PT_BHOL || (r&0xFF)==PT_NBHL) //this is where blackhole eats particles