summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-01-29 00:58:54 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-01-29 00:58:54 (GMT)
commit880ed33fc7b5258626afd186e71b02808555ce15 (patch)
treed0393612844ff7be0ed7b386256eeb8e27e3971f /src/graphics.c
parentbcea95c5ca9b899be193c20760c634e2a3f5ad91 (diff)
downloadpowder-880ed33fc7b5258626afd186e71b02808555ce15.zip
powder-880ed33fc7b5258626afd186e71b02808555ce15.tar.gz
oops, silly copy file, and fixed the new GoL from simon's fail merging.
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 06cd6fb..b18a659 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1714,6 +1714,49 @@ void draw_parts(pixel *vid)
blendpixel(vid, nx, ny, cr, cg, cb, 255);
}
+ else if(t==PT_LOTE)
+ {
+ if(parts[i].tmp==2)
+ blendpixel(vid, nx, ny, 255, 128, 0, 255);
+ else if(parts[i].tmp==1)
+ blendpixel(vid, nx, ny, 255, 255, 0, 255);
+ else
+ blendpixel(vid, nx, ny, 255, 0, 0, 255);
+ }
+ else if(t==PT_FRG2)
+ {
+ if(parts[i].tmp==2)
+ blendpixel(vid, nx, ny, 0, 100, 50, 255);
+ else
+ blendpixel(vid, nx, ny, 0, 255, 90, 255);
+ }
+ else if(t==PT_STAR)
+ {
+ if(parts[i].tmp==4)
+ blendpixel(vid, nx, ny, 0, 0, 128, 255);
+ else if(parts[i].tmp==3)
+ blendpixel(vid, nx, ny, 0, 0, 150, 255);
+ else if(parts[i].tmp==2)
+ blendpixel(vid, nx, ny, 0, 0, 190, 255);
+ else if(parts[i].tmp==1)
+ blendpixel(vid, nx, ny, 0, 0, 230, 255);
+ else
+ blendpixel(vid, nx, ny, 0, 0, 70, 255);
+ }
+ else if(t==PT_FROG)
+ {
+ if(parts[i].tmp==2)
+ blendpixel(vid, nx, ny, 0, 100, 0, 255);
+ else
+ blendpixel(vid, nx, ny, 0, 255, 0, 255);
+ }
+ else if(t==PT_BRAN)
+ {
+ if(parts[i].tmp==1)
+ blendpixel(vid, nx, ny, 150, 150, 0, 255);
+ else
+ blendpixel(vid, nx, ny, 255, 255, 0, 255);
+ }
else if (t==PT_DEUT)
{