summaryrefslogtreecommitdiff
path: root/src/elements/wire.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/wire.c')
-rw-r--r--src/elements/wire.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/elements/wire.c b/src/elements/wire.c
index d4225a5..e48e131 100644
--- a/src/elements/wire.c
+++ b/src/elements/wire.c
@@ -38,3 +38,30 @@ int update_WIRE(UPDATE_FUNC_ARGS) {
parts[i].ctype=1;
return 0;
}
+
+int graphics_WIRE(GRAPHICS_FUNC_ARGS)
+{
+ if (cpart->ctype==0)
+ {
+ *colr = 255;
+ *colg = 204;
+ *colb = 0;
+ return 0;
+ }
+ if (cpart->ctype==1)
+ {
+ *colr = 50;
+ *colg = 100;
+ *colb = 255;
+ //*pixel_mode |= PMODE_GLOW;
+ return 0;
+ }
+ if (cpart->ctype==2)
+ {
+ *colr = 255;
+ *colg = 100;
+ *colb = 50;
+ //*pixel_mode |= PMODE_GLOW;
+ return 0;
+ }
+}