summaryrefslogtreecommitdiff
path: root/src/elements/prti.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-18 18:06:56 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-18 18:06:56 (GMT)
commitc5a8615e892ff0009b10e918fe46421b298bc8e0 (patch)
tree679015cf649eeab6ff52ecfe46295c86ffd7814f /src/elements/prti.cpp
parent779ac383dcb6d88d46723f1e9a2d99c80cadac70 (diff)
downloadpowder-c5a8615e892ff0009b10e918fe46421b298bc8e0.zip
powder-c5a8615e892ff0009b10e918fe46421b298bc8e0.tar.gz
TPT: Fix portals being ugly and PRTO effects not being random at first 94b8ed193f
Diffstat (limited to 'src/elements/prti.cpp')
-rw-r--r--src/elements/prti.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/prti.cpp b/src/elements/prti.cpp
index 384fd7e..cb2030d 100644
--- a/src/elements/prti.cpp
+++ b/src/elements/prti.cpp
@@ -53,8 +53,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 (!sim->parts[i].life) parts[i].life = rand()*rand()*rand();
+ if (!sim->parts[i].ctype) parts[i].ctype = rand()*rand()*rand();
sim->orbitalparts_get(parts[i].life, parts[i].ctype, orbd, orbl);
for (r = 0; r < 4; r++) {
if (orbd[r]>1) {