Make energy particles visible to LSNS ant HSWC for deserialization

This commit is contained in:
Tamás Bálint Misius 2020-10-07 10:53:10 +02:00
parent 00ddc1f8be
commit 6052ef6179
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
2 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,8 @@ static int update(UPDATE_FUNC_ARGS)
if (BOUNDS_CHECK && (rx || ry))
{
r = pmap[y+ry][x+rx];
if (!r)
r = sim->photons[y+ry][x+rx];
if (!r)
continue;
if (TYP(r) == PT_HSWC)

View File

@ -124,6 +124,8 @@ static int update(UPDATE_FUNC_ARGS)
if (BOUNDS_CHECK && (rx || ry))
{
int r = pmap[y + ry][x + rx];
if (!r)
r = sim->photons[y + ry][x + rx];
if (!r)
continue;
int nx = x + rx;