From acebad0744e501214a4f2ae610c410e63e486084 Mon Sep 17 00:00:00 2001 From: Bryan Hoyle Date: Fri, 12 Aug 2011 12:18:41 -0400 Subject: [PATCH] Made the WTVR coolign only for teh H2/O2 reaction (To keep save compatavbility) --- src/elements/pyro.c | 1 + src/elements/wtrv.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/elements/pyro.c b/src/elements/pyro.c index 985151aca..bd6ab2639 100644 --- a/src/elements/pyro.c +++ b/src/elements/pyro.c @@ -14,6 +14,7 @@ int update_PYRO(UPDATE_FUNC_ARGS) { t = PT_DSTW; part_change_type(i,x,y,t); parts[i].life = 0; + parts[i].ctype = PT_FIRE; } else if (parts[i].temp<625) { diff --git a/src/elements/wtrv.c b/src/elements/wtrv.c index cfa6c5da6..a4facdecf 100644 --- a/src/elements/wtrv.c +++ b/src/elements/wtrv.c @@ -15,7 +15,7 @@ int update_WTRV(UPDATE_FUNC_ARGS) { parts[i].life = 4; } } - if(parts[i].temp>1273) + if(parts[i].temp>1273&&parts[i].ctype==PT_FIRE) parts[i].temp-=parts[i].temp/1000; return 0; }