summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 6a15e5a..a32d250 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1690,6 +1690,9 @@ void draw_parts(pixel *vid)
nx = (int)(parts[i].x+0.5f);
ny = (int)(parts[i].y+0.5f);
+ if(photons[ny][nx]&0xFF && !(ptypes[t].properties & TYPE_ENERGY))
+ continue;
+
if (t==PT_SOAP)
{
if ((parts[i].ctype&7) == 7)