summaryrefslogtreecommitdiff
path: root/src/simulation/elements/EMBR.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-25 16:12:15 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-25 16:12:15 (GMT)
commit6585a4640b9d1d24d821fb2147fe6182a709f088 (patch)
tree4ccbd35c1776955c2933991af5181babe2332f9a /src/simulation/elements/EMBR.cpp
parent0afecb5b77442d770f5ebb149f574d87859ebde7 (diff)
downloadpowder-6585a4640b9d1d24d821fb2147fe6182a709f088.zip
powder-6585a4640b9d1d24d821fb2147fe6182a709f088.tar.gz
TPT: Replace all explosion sparks with new element (EMBR) 1d5b081942
Diffstat (limited to 'src/simulation/elements/EMBR.cpp')
-rw-r--r--src/simulation/elements/EMBR.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/EMBR.cpp b/src/simulation/elements/EMBR.cpp
index 80c2c4e..ea710cf 100644
--- a/src/simulation/elements/EMBR.cpp
+++ b/src/simulation/elements/EMBR.cpp
@@ -94,7 +94,7 @@ int Element_EMBR::graphics(GRAPHICS_FUNC_ARGS)
*colr = *colg = *colb = 255;
}
- if (decorations_enable && cpart->dcolour)
+ if (ren->decorations_enable && cpart->dcolour)
{
int a = (cpart->dcolour>>24)&0xFF;
*colr = (a*((cpart->dcolour>>16)&0xFF) + (255-a)**colr) >> 8;