summaryrefslogtreecommitdiff
path: root/src/simulation/elements/BRCK.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-20 15:48:03 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-20 15:48:03 (GMT)
commitb318c3721a43de9789efc6c286b41566649f5252 (patch)
tree861c1f51b18e7ba7525b2a4903d9c7998af4a00a /src/simulation/elements/BRCK.cpp
parent13888623a5a7f6fa9f532570c1b733f0fcdf2a64 (diff)
downloadpowder-b318c3721a43de9789efc6c286b41566649f5252.zip
powder-b318c3721a43de9789efc6c286b41566649f5252.tar.gz
TPT: Powered pipe, based on jacob1's commits
Diffstat (limited to 'src/simulation/elements/BRCK.cpp')
-rw-r--r--src/simulation/elements/BRCK.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/simulation/elements/BRCK.cpp b/src/simulation/elements/BRCK.cpp
index b730418..6afcdb5 100644
--- a/src/simulation/elements/BRCK.cpp
+++ b/src/simulation/elements/BRCK.cpp
@@ -43,7 +43,18 @@ Element_BRCK::Element_BRCK()
HighTemperatureTransition = PT_LAVA;
Update = NULL;
-
+ Graphics = &Element_BRCK::graphics;
+}
+
+//#TPT-Directive ElementHeader Element_BRCK static int graphics(GRAPHICS_FUNC_ARGS)
+int Element_BRCK::graphics(GRAPHICS_FUNC_ARGS)
+{
+ if (cpart->tmp == 1)
+ {
+ *pixel_mode |= PMODE_GLOW;
+ *colb += 100;
+ }
+ return 0;
}
Element_BRCK::~Element_BRCK() {} \ No newline at end of file