Reset particle flags in create_part

This commit is contained in:
jacksonmj 2012-06-23 00:07:24 +01:00
parent 95ca29cc64
commit 135e91b84d

View File

@ -902,6 +902,7 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a
if (i>parts_lastActiveIndex) parts_lastActiveIndex = i; if (i>parts_lastActiveIndex) parts_lastActiveIndex = i;
parts[i].dcolour = 0; parts[i].dcolour = 0;
parts[i].flags = 0;
if (t==PT_GLAS) if (t==PT_GLAS)
{ {
parts[i].pavg[1] = pv[y/CELL][x/CELL]; parts[i].pavg[1] = pv[y/CELL][x/CELL];