Make energy particles visible to LSNS ant HSWC for deserialization
This commit is contained in:
parent
00ddc1f8be
commit
6052ef6179
@ -63,6 +63,8 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
if (BOUNDS_CHECK && (rx || ry))
|
if (BOUNDS_CHECK && (rx || ry))
|
||||||
{
|
{
|
||||||
r = pmap[y+ry][x+rx];
|
r = pmap[y+ry][x+rx];
|
||||||
|
if (!r)
|
||||||
|
r = sim->photons[y+ry][x+rx];
|
||||||
if (!r)
|
if (!r)
|
||||||
continue;
|
continue;
|
||||||
if (TYP(r) == PT_HSWC)
|
if (TYP(r) == PT_HSWC)
|
||||||
|
@ -124,6 +124,8 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
if (BOUNDS_CHECK && (rx || ry))
|
if (BOUNDS_CHECK && (rx || ry))
|
||||||
{
|
{
|
||||||
int r = pmap[y + ry][x + rx];
|
int r = pmap[y + ry][x + rx];
|
||||||
|
if (!r)
|
||||||
|
r = sim->photons[y + ry][x + rx];
|
||||||
if (!r)
|
if (!r)
|
||||||
continue;
|
continue;
|
||||||
int nx = x + rx;
|
int nx = x + rx;
|
||||||
|
Reference in New Issue
Block a user