diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-06-24 21:55:59 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-06-25 14:59:30 (GMT) |
| commit | 34d76f86803138699b46f7e6252c11985ef481cf (patch) | |
| tree | 99c962bea2e407f70a20b1d69f1c453f2abfc04c /src/elements/bcln.c | |
| parent | c18009dd9c87343178e808565d815b454bd2b585 (diff) | |
| download | powder-34d76f86803138699b46f7e6252c11985ef481cf.zip powder-34d76f86803138699b46f7e6252c11985ef481cf.tar.gz | |
Check photon map in Lua functions, and allow any ctype
Also add some extra checks on ctype in the rest of the game
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++) |
