From 06cb98f7050d99a07f128ece51302a8522bccfc5 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Sun, 5 Feb 2012 00:00:35 +0800 Subject: [PATCH] INSL blocks DLAY conduction, and raise DLAY temperature limit --- src/elements/dlay.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/elements/dlay.c b/src/elements/dlay.c index cb2e2d8ac..bc0a07bdf 100644 --- a/src/elements/dlay.c +++ b/src/elements/dlay.c @@ -7,17 +7,17 @@ int update_DLAY(UPDATE_FUNC_ARGS) { parts[i].life--; //if (parts[i].life==1) //{ - if (parts[i].temp>=256.0+273.15) - parts[i].temp=256.0+273.15; - if (parts[i].temp<= -256.0+273.15) - parts[i].temp = -256.0+273.15; + if (parts[i].temp>=MAX_TEMP+273.15f) + parts[i].temp = MAX_TEMP+273.15f; + if (parts[i].temp<= 1.0f+273.15f) + parts[i].temp = 1.0f+273.15f; for (rx=-2; rx<3; rx++) for (ry=-2; ry<3; ry++) if (x+rx>=0 && y+ry>0 && x+rx>8, i,PT_INSL)==PT_INSL) continue; if ((r&0xFF)==PT_SPRK && parts[i].life==0 && parts[r>>8].life>0 && parts[r>>8].life<4 && parts[r>>8].ctype==PT_PSCN) {