summaryrefslogtreecommitdiff
path: root/src/simulation/elements/VRSG.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-10-26 16:10:10 (GMT)
committer jacob1 <jfu614@gmail.com>2013-10-26 16:10:10 (GMT)
commita4da2566ecf3802f0dfdf7fc2ddba58ede246025 (patch)
treed62f43aab33bf577826b7c9fe39d42a3e00344a3 /src/simulation/elements/VRSG.cpp
parent48ecbce554a8ec33daefd7b1e84b31f8e199f186 (diff)
downloadpowder-a4da2566ecf3802f0dfdf7fc2ddba58ede246025.zip
powder-a4da2566ecf3802f0dfdf7fc2ddba58ede246025.tar.gz
fix virus graphics
Diffstat (limited to 'src/simulation/elements/VRSG.cpp')
-rw-r--r--src/simulation/elements/VRSG.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/simulation/elements/VRSG.cpp b/src/simulation/elements/VRSG.cpp
index e787bfe..76fba44 100644
--- a/src/simulation/elements/VRSG.cpp
+++ b/src/simulation/elements/VRSG.cpp
@@ -43,7 +43,21 @@ Element_VRSG::Element_VRSG()
HighTemperatureTransition = NT;
Update = &Element_VIRS::update;
- Graphics = &Element_VIRS::graphics;
+ Graphics = &Element_VRSG::graphics;
+}
+
+
+//#TPT-Directive ElementHeader Element_VRSG static int graphics(GRAPHICS_FUNC_ARGS)
+int Element_VRSG::graphics(GRAPHICS_FUNC_ARGS)
+{
+ *pixel_mode &= ~PMODE;
+ *pixel_mode |= FIRE_BLEND;
+ *firer = *colr/2;
+ *fireg = *colg/2;
+ *fireb = *colb/2;
+ *firea = 125;
+ *pixel_mode |= NO_DECO;
+ return 1;
}
Element_VRSG::~Element_VRSG() {}