From 63f3f90c555dfc3d37bbf4dc5230f16055f13135 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Wed, 6 Apr 2011 11:47:13 +0100 Subject: [PATCH] Improve PRTI orbital effects Prevent ugly positioning of orbital effects when PRTI is surrounded but still taking in particles --- src/elements/prti.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/elements/prti.c b/src/elements/prti.c index f51c21c9a..30f86aedf 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) {