diff options
Diffstat (limited to 'src/elements/bcln.c')
| -rw-r--r-- | src/elements/bcln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/bcln.c b/src/elements/bcln.c index aaf4afc..5d95d97 100644 --- a/src/elements/bcln.c +++ b/src/elements/bcln.c @@ -9,7 +9,7 @@ int update_BCLN(UPDATE_FUNC_ARGS) { parts[i].vx += advection*vx[y/CELL][x/CELL]; parts[i].vy += advection*vy[y/CELL][x/CELL]; } - if (!parts[i].ctype) + if (parts[i].ctype<=0 || parts[i].ctype>=PT_NUM) { int r, rx, ry; for (rx=-1; rx<2; rx++) |
