summaryrefslogtreecommitdiff
path: root/src/elements/prti.c
diff options
context:
space:
mode:
authorJacob1 <jfu614@gmail.com>2012-03-14 23:51:13 (GMT)
committer Jacob1 <jfu614@gmail.com>2012-03-14 23:51:13 (GMT)
commit94b8ed193faee876d87ef6f3375a72c3a16acf4e (patch)
tree6393839493aed0c76d2e106965f016d52efb32c4 /src/elements/prti.c
parent96ec3486e837319bc6a9009e0e7a3e61a39ccccc (diff)
downloadpowder-94b8ed193faee876d87ef6f3375a72c3a16acf4e.zip
powder-94b8ed193faee876d87ef6f3375a72c3a16acf4e.tar.gz
Fix portals being ugly and PRTO effects not being random at first
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) {