summaryrefslogtreecommitdiff
path: root/src/Renderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Renderer.cpp')
-rw-r--r--src/Renderer.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Renderer.cpp b/src/Renderer.cpp
index 10a9205..c8f301f 100644
--- a/src/Renderer.cpp
+++ b/src/Renderer.cpp
@@ -701,7 +701,7 @@ void Renderer::render_parts()
fireg = graphicscache[t].fireg;
fireb = graphicscache[t].fireb;
}
- else
+ else if(!(colour_mode & COLOUR_BASC))
{
if (ptypes[t].graphics_func)
{
@@ -789,6 +789,13 @@ void Renderer::render_parts()
colb = sin(frequency*q) * 16 + colb;
if(pixel_mode & (FIREMODE | PMODE_GLOW)) pixel_mode = (pixel_mode & ~(FIREMODE|PMODE_GLOW)) | PMODE_BLUR;
}
+ else if(colour_mode & COLOUR_BASC)
+ {
+ colr = PIXR(ptypes[t].pcolors);
+ colg = PIXG(ptypes[t].pcolors);
+ colb = PIXB(ptypes[t].pcolors);
+ pixel_mode = PMODE_FLAT;
+ }
//Apply decoration colour
if(!colour_mode)