diff options
| author | Simon 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) |
| commit | fe8268525776b8867e950d627bbc8d1df0234595 (patch) | |
| tree | 750a71ceeec77a0d3f4cc688bc3eb3e89c9a4bd1 /src/graphics.c | |
| parent | f41f96f59899cfab8534d24f40c83df088e8d2c5 (diff) | |
| download | powder-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.c | 9 |
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) |
