diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-11-01 13:35:18 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-11-01 13:35:18 (GMT) |
| commit | 6de8346cdb7ee92831ab919541553dc33ec57bd0 (patch) | |
| tree | 339f59a105723fa8d8b558cf5347fd4145d43b0c /src/elements | |
| parent | 241a12104bafdeb0ba310da9b724b0652befb34f (diff) | |
| download | powder-6de8346cdb7ee92831ab919541553dc33ec57bd0.zip powder-6de8346cdb7ee92831ab919541553dc33ec57bd0.tar.gz | |
Fix Wireworld graphics
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/wire.c | 27 |
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; + } +} |
