Ensure energy particles are always drawn on top
This commit is contained in:
parent
7351da3962
commit
43b75ea058
@ -1690,6 +1690,9 @@ void draw_parts(pixel *vid)
|
|||||||
nx = (int)(parts[i].x+0.5f);
|
nx = (int)(parts[i].x+0.5f);
|
||||||
ny = (int)(parts[i].y+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 (t==PT_SOAP)
|
||||||
{
|
{
|
||||||
if ((parts[i].ctype&7) == 7)
|
if ((parts[i].ctype&7) == 7)
|
||||||
|
Reference in New Issue
Block a user