summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/powder.c')
-rw-r--r--src/powder.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index e6e9e76..016b54b 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -769,10 +769,15 @@ inline int create_part(int p, int x, int y, int t)//the function for creating a
{
parts[i].pavg[1] = pv[y/CELL][x/CELL];
}
- if (t==PT_QRTZ)
+ else if (t==PT_QRTZ)
{
parts[i].pavg[1] = pv[y/CELL][x/CELL];
}
+ else
+ {
+ parts[i].pavg[0] = 0.0f;
+ parts[i].pavg[1] = 0.0f;
+ }
if (t!=PT_STKM&&t!=PT_STKM2)//set everything to default values first, except for stickman.
{
parts[i].x = (float)x;