Permalink
Browse files

fix mistake in EMP.cpp, add license header in Probability.cpp

  • Loading branch information...
jacob1 committed Dec 19, 2015
1 parent 52a22bc commit af489972283355bd2290c70c4a070a22317ad5ae
Showing with 15 additions and 1 deletion.
  1. +14 −0 src/Probability.cpp
  2. +1 −1 src/simulation/elements/EMP.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 <http://www.gnu.org/licenses/>.
*/
#include <numeric>
#include <cstdlib>
@@ -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);
}
}

0 comments on commit af48997

Please sign in to comment.