diff options
| author | jacob1 <jfu614@gmail.com> | 2013-02-01 19:29:18 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-02-01 19:29:18 (GMT) |
| commit | 8e02443f0a294fcec9bcc8678dcf8b61f0d56f99 (patch) | |
| tree | 817b9604767f046f8abe08f6cdf330f7260502c8 /src/simulation/elements/STOR.cpp | |
| parent | 486d26e40b1a11fbad2e203ec9bed88098504b77 (diff) | |
| download | powder-8e02443f0a294fcec9bcc8678dcf8b61f0d56f99.zip powder-8e02443f0a294fcec9bcc8678dcf8b61f0d56f99.tar.gz | |
prevent CRAY from destroying DMND
Diffstat (limited to 'src/simulation/elements/STOR.cpp')
| -rw-r--r-- | src/simulation/elements/STOR.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/STOR.cpp b/src/simulation/elements/STOR.cpp index fd82b7a..a9f5d94 100644 --- a/src/simulation/elements/STOR.cpp +++ b/src/simulation/elements/STOR.cpp @@ -72,7 +72,7 @@ int Element_STOR::update(UPDATE_FUNC_ARGS) if(parts[i].tmp && (r&0xFF)==PT_SPRK && parts[r>>8].ctype==PT_PSCN && parts[r>>8].life>0 && parts[r>>8].life<4) { for(ry1 = 1; ry1 >= -1; ry1--){ - for(rx1 = 0; rx1 >= -1 && rx1 <= 1; rx1 = -rx1-rx1+1){ // Oscilate the X starting at 0, 1, -1, 3, -5, etc (Though stop at -1) + for(rx1 = 0; rx1 >= -1 && rx1 <= 1; rx1 = -rx1-rx1+1){ // Oscillate the X starting at 0, 1, -1, 3, -5, etc (Though stop at -1) np = sim->create_part(-1,x+rx1,y+ry1,parts[i].tmp); if (np!=-1) { |
