summaryrefslogtreecommitdiff
path: root/src/elements/prti.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-03-15 01:52:23 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-03-15 01:52:23 (GMT)
commit7a454d4d729a5715a7c1e71dfbaf303471bf8d1f (patch)
tree234cb5ba80e5227ecc5dc7c7e9b4845444e5f1a9 /src/elements/prti.c
parentb4a06df0b2264c690f0161b099c2c5a2c11f8b3b (diff)
parentbf5484ca63f0ee5165b394f98d91e16089f657a2 (diff)
downloadpowder-7a454d4d729a5715a7c1e71dfbaf303471bf8d1f.zip
powder-7a454d4d729a5715a7c1e71dfbaf303471bf8d1f.tar.gz
Merge pull request #57 from jacob1/test
Bug fixes + Some stuff from jacob1's mod
Diffstat (limited to 'src/elements/prti.c')
-rw-r--r--src/elements/prti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/prti.c b/src/elements/prti.c
index 8d8f685..8b15598 100644
--- a/src/elements/prti.c
+++ b/src/elements/prti.c
@@ -55,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) {