summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoJoBond <jojobond@hotmail.com>2010-11-05 21:45:48 (GMT)
committer JoJoBond <jojobond@hotmail.com>2010-11-05 21:45:48 (GMT)
commitc5df30d90bc5591efa2e176dbd6fa405cf985c84 (patch)
tree0639fef77acbf90a0e06fffb861ac8b4086a112e /src
parente2d4431b46230d9235001fde8ddcad8056f26594 (diff)
downloadpowder-c5df30d90bc5591efa2e176dbd6fa405cf985c84.zip
powder-c5df30d90bc5591efa2e176dbd6fa405cf985c84.tar.gz
fixed SWCH bug
Diffstat (limited to 'src')
-rw-r--r--src/powder.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/powder.c b/src/powder.c
index 9176e42..c28129a 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -2135,18 +2135,18 @@ void update_particles_i(pixel *vid, int start, int inc)
}
}
}
- //Check if there is a SWCH that is currently covered with SPRK
- //If so check if the current SPRK is covering a NSCN
- //If so turn the SPRK that covers the SWCH back into SWCH and turn it off
- if(rt==PT_SPRK && parts[r>>8].ctype == PT_SWCH && t==PT_SPRK)
+ //Check if there is a SWCH that is currently covered with SPRK
+ //If so check if the current SPRK is covering a NSCN
+ //If so turn the SPRK that covers the SWCH back into SWCH and turn it off
+ if(rt==PT_SPRK && parts[r>>8].ctype == PT_SWCH && t==PT_SPRK)
{
- pavg = parts_avg(r>>8, i);
+ pavg = parts_avg(r>>8, i);
if(parts[i].ctype == PT_NSCN&&pavg != PT_INSL)
- {
- parts[r>>8].type = PT_SWCH;
+ {
+ parts[r>>8].type = PT_SWCH;
parts[r>>8].ctype = PT_NONE;
parts[r>>8].life = 0;
- }
+ }
}
pavg = parts_avg(i, r>>8);
if(rt==PT_SWCH && t==PT_SPRK)