summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-06-09 11:34:06 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-06-09 15:09:14 (GMT)
commit303a32f2903d763d73060a28449e1d723f905f2b (patch)
tree920f9c334be4642530e33e5c693b09c9620a7ec7 /src/elements
parent601766a3a0a596ef125c5d59510649178281ca8e (diff)
downloadpowder-303a32f2903d763d73060a28449e1d723f905f2b.zip
powder-303a32f2903d763d73060a28449e1d723f905f2b.tar.gz
Avoid stacking in INVS and FILT, and fix pressurised INVS graphics
Collisions now always work for particles inside INVS and FILT, so particles don't stack (just a single particle on top of each INVS/FILT). Pressurised INVS was being drawn using PMODE_FLAT (with no alpha blending), which sometimes hid particles inside INVS. Also limit BHOL tmp value to make sure it saves correctly.
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/newgraphics.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/elements/newgraphics.c b/src/elements/newgraphics.c
index 92a1c94..5679b63 100644
--- a/src/elements/newgraphics.c
+++ b/src/elements/newgraphics.c
@@ -249,8 +249,7 @@ int graphics_INVS(GRAPHICS_FUNC_ARGS)
*colr = 15;
*colg = 0;
*colb = 150;
- *pixel_mode &= PMODE;
- *pixel_mode |= PMODE_BLEND;
+ *pixel_mode = PMODE_BLEND;
}
return 0;
}