diff options
| author | jacob1 <jfu614@gmail.com> | 2013-09-02 01:52:38 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-09-02 01:52:38 (GMT) |
| commit | f1145f31f52f1089fed4c7f390f5384f040b4771 (patch) | |
| tree | 3fa26b80978696e9390e248666183d28bad04fa2 /src/simulation/elements/ELEC.cpp | |
| parent | b2957dc1c9b2f025727a57063f2e252647918fc2 (diff) | |
| download | powder-f1145f31f52f1089fed4c7f390f5384f040b4771.zip powder-f1145f31f52f1089fed4c7f390f5384f040b4771.tar.gz | |
new element: PROT (protons) TODO: proton colliders to produce heavier elements
Diffstat (limited to 'src/simulation/elements/ELEC.cpp')
| -rw-r--r-- | src/simulation/elements/ELEC.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/simulation/elements/ELEC.cpp b/src/simulation/elements/ELEC.cpp index 8ab4af1..56e90b3 100644 --- a/src/simulation/elements/ELEC.cpp +++ b/src/simulation/elements/ELEC.cpp @@ -91,6 +91,7 @@ int Element_ELEC::update(UPDATE_FUNC_ARGS) sim->create_part(r>>8, x+rx, y+ry, PT_H2); return 1; case PT_NEUT: + case PT_PROT: // this is the correct reaction, not NEUT, but leaving NEUT in anyway sim->part_change_type(r>>8, x+rx, y+ry, PT_H2); parts[r>>8].life = 0; parts[r>>8].ctype = 0; @@ -124,8 +125,6 @@ int Element_ELEC::update(UPDATE_FUNC_ARGS) return 0; } - - //#TPT-Directive ElementHeader Element_ELEC static int graphics(GRAPHICS_FUNC_ARGS) int Element_ELEC::graphics(GRAPHICS_FUNC_ARGS) |
