diff --git a/src/Probability.cpp b/src/Probability.cpp index bb8c00425..2df8572fd 100644 --- a/src/Probability.cpp +++ b/src/Probability.cpp @@ -1,3 +1,17 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ #include #include diff --git a/src/simulation/elements/EMP.cpp b/src/simulation/elements/EMP.cpp index ca7b4a12d..ca83e8a20 100644 --- a/src/simulation/elements/EMP.cpp +++ b/src/simulation/elements/EMP.cpp @@ -124,7 +124,7 @@ int Element_EMP::Trigger(Simulation *sim, int triggerCount) { if (rand()%5 < 2) sim->part_change_type(r, rx, ry, PT_BREC); - else if (!(rand()%120)) + else sim->part_change_type(r, rx, ry, PT_NTCT); } }