Fix WIND decoration, and reset dcolour in create_part
This commit is contained in:
parent
a2c171fbf9
commit
5e414e64dc
@ -329,7 +329,7 @@ struct particle
|
|||||||
int flags;
|
int flags;
|
||||||
int tmp;
|
int tmp;
|
||||||
int tmp2;
|
int tmp2;
|
||||||
int dcolour;
|
unsigned int dcolour;
|
||||||
};
|
};
|
||||||
typedef struct particle particle;
|
typedef struct particle particle;
|
||||||
|
|
||||||
|
@ -989,7 +989,7 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char
|
|||||||
// Replace invisible particles with something sensible and add decoration to hide it
|
// Replace invisible particles with something sensible and add decoration to hide it
|
||||||
x = (int)(parts[i-1].x+0.5f);
|
x = (int)(parts[i-1].x+0.5f);
|
||||||
y = (int)(parts[i-1].y+0.5f);
|
y = (int)(parts[i-1].y+0.5f);
|
||||||
parts[i-1].dcolour = 0x010101;
|
parts[i-1].dcolour = 0xFF000000;
|
||||||
parts[i-1].type = PT_DMND;
|
parts[i-1].type = PT_DMND;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -709,6 +709,7 @@ inline int create_part(int p, int x, int y, int t)//the function for creating a
|
|||||||
else
|
else
|
||||||
i = p;
|
i = p;
|
||||||
|
|
||||||
|
parts[i].dcolour = 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];
|
||||||
|
Loading…
Reference in New Issue
Block a user