summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-02-25 22:29:43 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-02-25 22:29:43 (GMT)
commitfe8268525776b8867e950d627bbc8d1df0234595 (patch)
tree750a71ceeec77a0d3f4cc688bc3eb3e89c9a4bd1 /src/graphics.c
parentf41f96f59899cfab8534d24f40c83df088e8d2c5 (diff)
downloadpowder-fe8268525776b8867e950d627bbc8d1df0234595.zip
powder-fe8268525776b8867e950d627bbc8d1df0234595.tar.gz
Old nothing display mode in the form of Basic colour mode
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 185ad6e..db5ae52 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1806,7 +1806,7 @@ void render_parts(pixel *vid)
fireg = graphicscache[t].fireg;
fireb = graphicscache[t].fireb;
}
- else
+ else if(!(colour_mode & COLOUR_BASC)) //Don't get special effects for BASIC colour mode
{
if (ptypes[t].graphics_func)
{
@@ -1894,6 +1894,13 @@ void render_parts(pixel *vid)
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)