summaryrefslogtreecommitdiff
path: root/src/elements/prti.c
diff options
context:
space:
mode:
authorchaos.powdertoy.co.uk <admin@powdertoy.co.uk>2012-03-15 02:14:17 (GMT)
committer chaos.powdertoy.co.uk <admin@powdertoy.co.uk>2012-03-15 02:14:17 (GMT)
commit6254d4064dff390ce92c1803cdf9d9fb58a62e79 (patch)
treec95626a1f5ea562d7a4dc5c58a02b0db3c902043 /src/elements/prti.c
parent4fc0f750221a33a9ac922022ee58ccda6bbe3440 (diff)
parent7a454d4d729a5715a7c1e71dfbaf303471bf8d1f (diff)
downloadpowder-6254d4064dff390ce92c1803cdf9d9fb58a62e79.zip
powder-6254d4064dff390ce92c1803cdf9d9fb58a62e79.tar.gz
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/elements/prti.c')
-rw-r--r--src/elements/prti.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/elements/prti.c b/src/elements/prti.c
index 57830ab..8b15598 100644
--- a/src/elements/prti.c
+++ b/src/elements/prti.c
@@ -31,6 +31,9 @@ int update_PRTI(UPDATE_FUNC_ARGS) {
continue;
}
+ if ((r&0xFF)==PT_STKM || (r&0xFF)==PT_STKM2 || (r&0xFF)==PT_FIGH)
+ continue;// Handling these is a bit more complicated, and is done in STKM_interact()
+
if ((r&0xFF) == PT_SOAP)
detach(r>>8);
@@ -52,8 +55,8 @@ int update_PRTI(UPDATE_FUNC_ARGS) {
if (fe) {
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].ctype = rand();
+ if (!parts[i].life) parts[i].life = rand()*rand()*rand();
+ if (!parts[i].ctype) parts[i].ctype = rand()*rand()*rand();
orbitalparts_get(parts[i].life, parts[i].ctype, orbd, orbl);
for (r = 0; r < 4; r++) {
if (orbd[r]>1) {