diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-04-06 10:47:13 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-04-08 10:10:28 (GMT) |
| commit | 63f3f90c555dfc3d37bbf4dc5230f16055f13135 (patch) | |
| tree | 0b90cfb33a841aee31ca994d5670370606625874 /src/elements | |
| parent | cbbce662ccd5d55ec7a0063300505f9e094ce781 (diff) | |
| download | powder-63f3f90c555dfc3d37bbf4dc5230f16055f13135.zip powder-63f3f90c555dfc3d37bbf4dc5230f16055f13135.tar.gz | |
Improve PRTI orbital effects
Prevent ugly positioning of orbital effects when PRTI is surrounded but still taking in particles
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/prti.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elements/prti.c b/src/elements/prti.c index f51c21c..30f86ae 100644 --- a/src/elements/prti.c +++ b/src/elements/prti.c @@ -36,6 +36,7 @@ int update_PRTI(UPDATE_FUNC_ARGS) { part_change_type(r>>8,x+rx,y+ry,parts[r>>8].ctype); else kill_part(r>>8); + fe = 1; break; } } @@ -45,7 +46,7 @@ int update_PRTI(UPDATE_FUNC_ARGS) { int orbd[4] = {0, 0, 0, 0}; //Orbital distances int orbl[4] = {0, 0, 0, 0}; //Orbital locations if (!parts[i].life) parts[i].life = rand(); - if (!parts[i].ctype) parts[i].life = rand(); + if (!parts[i].ctype) parts[i].ctype = rand(); orbitalparts_get(parts[i].life, parts[i].ctype, orbd, orbl); for (r = 0; r < 4; r++) { if (orbd[r]>1) { |
