Make energy particles visible to LSNS ant HSWC for reals (see 6052ef6)

This commit is contained in:
Tamás Bálint Misius 2020-10-07 11:16:47 +02:00
parent 02468d0786
commit 99c99132bd
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
2 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,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 rt = TYP(r);

View File

@ -60,6 +60,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 rt = TYP(r);