Ensure energy particles are always drawn on top

This commit is contained in:
Simon Robertshaw 2011-06-26 15:20:10 +01:00
parent 7351da3962
commit 43b75ea058

View File

@ -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)