From 93f58379747122e04701ac23e05159aa582b2d2b Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 26 Nov 2011 12:50:28 +0000 Subject: Fix bug with PIPE where particles would have an incorrect colour if they didn't explicitly set the colr/g/b in its own graphics update diff --git a/src/elements/pipe.c b/src/elements/pipe.c index afb4b4e..61c56f6 100644 --- a/src/elements/pipe.c +++ b/src/elements/pipe.c @@ -268,6 +268,9 @@ int graphics_PIPE(GRAPHICS_FUNC_ARGS) } else { + *colr = PIXR(ptypes[t].pcolors); + *colg = PIXR(ptypes[t].pcolors); + *colb = PIXR(ptypes[t].pcolors); if (ptypes[t].graphics_func) { (*(ptypes[t].graphics_func))(&tpart, nx, ny, pixel_mode, cola, colr, colg, colb, firea, firer, fireg, fireb); -- cgit v0.9.2-21-gd62e