summaryrefslogtreecommitdiff
path: root/src/simulation/elements/SPRK.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-05-03 21:33:39 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-05-03 21:33:39 (GMT)
commitdd0f5f5efb4f108c2ce329a2ceabc7d8fa2b63f8 (patch)
treea623f7319698766a9b3fd826b16692e015fc672d /src/simulation/elements/SPRK.cpp
parent2eaed9c9d478292f18d8a6aea9d2c9c869b26911 (diff)
downloadpowder-dd0f5f5efb4f108c2ce329a2ceabc7d8fa2b63f8.zip
powder-dd0f5f5efb4f108c2ce329a2ceabc7d8fa2b63f8.tar.gz
New element: Tungsten, very high melting point
Diffstat (limited to 'src/simulation/elements/SPRK.cpp')
-rw-r--r--src/simulation/elements/SPRK.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/simulation/elements/SPRK.cpp b/src/simulation/elements/SPRK.cpp
index d441455..5d99b07 100644
--- a/src/simulation/elements/SPRK.cpp
+++ b/src/simulation/elements/SPRK.cpp
@@ -158,6 +158,10 @@ int Element_SPRK::update(UPDATE_FUNC_ARGS)
}
}
break;
+ case PT_TUGN:
+ if(parts[i].temp < 3595.0){
+ parts[i].temp += (rand()%20)-4;
+ }
default:
break;
}