fix photon heating particle number 0

This commit is contained in:
Cracker64 2011-01-12 16:36:08 -05:00
parent 6083b64b72
commit 1c8df0f09e

View File

@ -150,7 +150,7 @@ int try_move(int i, int x, int y, int nx, int ny)
if(!e)
{
if(!legacy_enable && parts[i].type==PT_PHOT)
if(!legacy_enable && parts[i].type==PT_PHOT && r)
{
if((r & 0xFF) == PT_COAL || (r & 0xFF) == PT_BCOL)
parts[r>>8].temp = parts[i].temp;