summaryrefslogtreecommitdiff
path: root/src/elements/O2.c
diff options
context:
space:
mode:
authorBryan Hoyle <starfoxprime@gmail.com>2011-08-12 15:56:52 (GMT)
committer Bryan Hoyle <starfoxprime@gmail.com>2011-08-12 15:56:52 (GMT)
commitf5cb03d4247b0e21811cba6c71fe37140fd446b3 (patch)
tree61f02afe68bc8b040e8740dbfc0550b3f52a8490 /src/elements/O2.c
parent62bd61edaebabe1b48c62826bd6634b2921ac40c (diff)
downloadpowder-f5cb03d4247b0e21811cba6c71fe37140fd446b3.zip
powder-f5cb03d4247b0e21811cba6c71fe37140fd446b3.tar.gz
Realistic burn temp for O2 and H2 reaction ~~3200 Celcius
Diffstat (limited to 'src/elements/O2.c')
-rw-r--r--src/elements/O2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/elements/O2.c b/src/elements/O2.c
index 2584d3a..a008766 100644
--- a/src/elements/O2.c
+++ b/src/elements/O2.c
@@ -14,6 +14,8 @@ int update_O2(UPDATE_FUNC_ARGS)
if ((r&0xFF)==PT_FIRE)
{
parts[r>>8].temp+=(rand()/(RAND_MAX/100));
+ if(parts[r>>8].tmp&0x01)
+ parts[r>>8].temp=3473;
parts[r>>8].tmp |= 2;
}
if ((r&0xFF)==PT_FIRE || (r&0xFF)==PT_PLSM)