mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 10:49:53 +02:00
STOR can absorb radiation particles (#978)
This commit is contained in:
@@ -66,7 +66,9 @@ static int update(UPDATE_FUNC_ARGS)
|
||||
if (rx || ry)
|
||||
{
|
||||
auto r = pmap[y+ry][x+rx];
|
||||
if ((ID(r))>=NPART || !r)
|
||||
if (!r)
|
||||
r= sim->photons[y+ry][x+rx];
|
||||
if (!r)
|
||||
continue;
|
||||
if (!parts[i].tmp && !parts[i].life && TYP(r)!=PT_STOR && !(elements[TYP(r)].Properties&TYPE_SOLID) && (!parts[i].ctype || TYP(r)==parts[i].ctype))
|
||||
{
|
||||
|
Reference in New Issue
Block a user