diff options
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) { |
