summaryrefslogtreecommitdiff
path: root/src/simulation/elements/IGNT.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/IGNT.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/IGNT.cpp')
-rw-r--r--src/simulation/elements/IGNT.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/IGNT.cpp b/src/simulation/elements/IGNT.cpp
index 206b92b..de26eb7 100644
--- a/src/simulation/elements/IGNT.cpp
+++ b/src/simulation/elements/IGNT.cpp
@@ -73,9 +73,9 @@ int Element_IGNT::update(UPDATE_FUNC_ARGS)
{
if(rand()%3)
{
- int nb = sim->create_part(-1, x+rand()%3-1, y+rand()%3-1, PT_BOMB);
+ int nb = sim->create_part(-1, x+rand()%3-1, y+rand()%3-1, PT_EMBR);
if (nb!=-1) {
- parts[nb].tmp = 1;
+ parts[nb].tmp = 0;
parts[nb].life = 30;
parts[nb].vx = rand()%20-10;
parts[nb].vy = rand()%20-10;