diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 14:05:55 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 14:05:55 (GMT) |
| commit | fad383f3923cc04fb8b2ecd7a72cf5406832cf5d (patch) | |
| tree | 95e7d43ea1baa3cb556ed13849da3df69bd3c1dc /src/simulation/elements/NEUT.cpp | |
| parent | a03e92830a429e89d2c516e9b63eb44ab49e8417 (diff) | |
| download | powder-fad383f3923cc04fb8b2ecd7a72cf5406832cf5d.zip powder-fad383f3923cc04fb8b2ecd7a72cf5406832cf5d.tar.gz | |
TPT: Update to EXOT that makes it permeable to neutrons as well as electro... a104696620
Diffstat (limited to 'src/simulation/elements/NEUT.cpp')
| -rw-r--r-- | src/simulation/elements/NEUT.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/simulation/elements/NEUT.cpp b/src/simulation/elements/NEUT.cpp index 5c963e7..0d882d8 100644 --- a/src/simulation/elements/NEUT.cpp +++ b/src/simulation/elements/NEUT.cpp @@ -134,6 +134,8 @@ int Element_NEUT::update(UPDATE_FUNC_ARGS) sim->kill_part(i); return 1; } + else if ((r&0xFF)==PT_EXOT && 5>(rand()%100)) + parts[r>>8].life = 1500; /*if(parts[r>>8].type>1 && parts[r>>8].type!=PT_NEUT && parts[r>>8].type-1!=PT_NEUT && parts[r>>8].type-1!=PT_STKM && (elements[parts[r>>8].type-1].menusection==SC_LIQUID|| elements[parts[r>>8].type-1].menusection==SC_EXPLOSIVE|| |
