TPT: Fix PROP_NEUTPENETRATE, particles weren't being moved into empty space
This commit is contained in:
parent
c0008efb74
commit
9033786e49
@ -2016,7 +2016,7 @@ int Simulation::try_move(int i, int x, int y, int nx, int ny)
|
||||
if (parts[i].type==PT_NEUT) {
|
||||
// target material is NEUTPENETRATE, meaning it gets moved around when neutron passes
|
||||
unsigned s = pmap[y][x];
|
||||
if (!(elements[s&0xFF].Properties&PROP_NEUTPENETRATE))
|
||||
if (s && !(elements[s&0xFF].Properties&PROP_NEUTPENETRATE))
|
||||
return 1; // if the element currently underneath neutron isn't NEUTPENETRATE, don't move anything except the neutron
|
||||
// if nothing is currently underneath neutron, only move target particle
|
||||
if (s)
|
||||
|
Reference in New Issue
Block a user