From 1c8df0f09e3d3580bb23646578ce91826f2ee116 Mon Sep 17 00:00:00 2001 From: Cracker64 Date: Wed, 12 Jan 2011 16:36:08 -0500 Subject: [PATCH] fix photon heating particle number 0 --- src/powder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index 877048c5d..cc908c0f4 100644 --- a/src/powder.c +++ b/src/powder.c @@ -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;