summaryrefslogtreecommitdiff
path: root/src/elements/uran.c
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-01-28 23:54:50 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-01-28 23:54:50 (GMT)
commitbcea95c5ca9b899be193c20760c634e2a3f5ad91 (patch)
tree7af3857d49748fb75c7c02d6ff3af38fbaa3450c /src/elements/uran.c
parent60d3f0047b21c6a1b34d07f0c0ac8c3cbc708289 (diff)
downloadpowder-bcea95c5ca9b899be193c20760c634e2a3f5ad91.zip
powder-bcea95c5ca9b899be193c20760c634e2a3f5ad91.tar.gz
update to latest
Diffstat (limited to 'src/elements/uran.c')
-rw-r--r--src/elements/uran.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/elements/uran.c b/src/elements/uran.c
new file mode 100644
index 0000000..2b6c563
--- /dev/null
+++ b/src/elements/uran.c
@@ -0,0 +1,10 @@
+#include <element.h>
+
+int update_URAN(UPDATE_FUNC_ARGS) {
+ if (!legacy_enable && pv[y/CELL][x/CELL]>0.0f)
+ {
+ float atemp = parts[i].temp + (-MIN_TEMP);
+ parts[i].temp = restrict_flt((atemp*(1+(pv[y/CELL][x/CELL]/2000)))+MIN_TEMP, MIN_TEMP, MAX_TEMP);
+ }
+ return 0;
+}