From d0f1024f95580b35e7e10c9599047b8592f187cd Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 30 Jun 2017 20:10:04 -0400 Subject: [PATCH] add BCOL + NEUT -> SAWD, closes #471 and #472 --- src/simulation/elements/NEUT.cpp | 4 ++++ src/simulation/elements/SAWD.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/simulation/elements/NEUT.cpp b/src/simulation/elements/NEUT.cpp index 92425f61b8..81bb421c2d 100644 --- a/src/simulation/elements/NEUT.cpp +++ b/src/simulation/elements/NEUT.cpp @@ -141,6 +141,10 @@ int Element_NEUT::update(UPDATE_FUNC_ARGS) if (!(rand()%20)) sim->create_part(r>>8, x+rx, y+ry, PT_WOOD); break; + case PT_BCOL: + if (!(rand()%20)) + sim->create_part(r>>8, x+rx, y+ry, PT_SAWD); + break; case PT_DUST: if (!(rand()%20)) sim->part_change_type(r>>8, x+rx, y+ry, PT_FWRK); diff --git a/src/simulation/elements/SAWD.cpp b/src/simulation/elements/SAWD.cpp index 988c37aecb..77ae46e776 100644 --- a/src/simulation/elements/SAWD.cpp +++ b/src/simulation/elements/SAWD.cpp @@ -26,11 +26,11 @@ Element_SAWD::Element_SAWD() Weight = 18; - Temperature = R_TEMP+0.0f +273.15f; + Temperature = R_TEMP+273.15f; HeatConduct = 70; Description = "Sawdust. Floats on water."; - Properties = TYPE_PART; + Properties = TYPE_PART | PROP_NEUTPASS; LowPressure = IPL; LowPressureTransition = NT;