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

This commit is contained in:
Simon Robertshaw 2011-11-26 12:50:28 +00:00
parent 047a39498d
commit 93f5837974

View File

@ -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);