From f5cb03d4247b0e21811cba6c71fe37140fd446b3 Mon Sep 17 00:00:00 2001 From: Bryan Hoyle Date: Fri, 12 Aug 2011 11:56:52 -0400 Subject: [PATCH] Realistic burn temp for O2 and H2 reaction ~~3200 Celcius --- src/elements/O2.c | 2 ++ src/elements/h2.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/elements/O2.c b/src/elements/O2.c index 2584d3ad6..a0087666d 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) diff --git a/src/elements/h2.c b/src/elements/h2.c index 336f496e2..36c110e91 100644 --- a/src/elements/h2.c +++ b/src/elements/h2.c @@ -19,6 +19,8 @@ int update_H2(UPDATE_FUNC_ARGS) if ((r&0xFF)==PT_FIRE) { parts[r>>8].temp+=(rand()/(RAND_MAX/100)); + if(parts[r>>8].tmp&0x02) + parts[r>>8].temp=3473; parts[r>>8].tmp |= 1; } if ((r&0xFF)==PT_FIRE || (r&0xFF)==PT_PLSM || (r&0xFF)==PT_LAVA)