summaryrefslogtreecommitdiff
path: root/src/elements/prto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/prto.c')
-rw-r--r--src/elements/prto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/prto.c b/src/elements/prto.c
index adf82a7..40cf97c 100644
--- a/src/elements/prto.c
+++ b/src/elements/prto.c
@@ -63,10 +63,10 @@ int update_PRTO(UPDATE_FUNC_ARGS) {
}
}
if(fe){
- if(!parts[i].life) parts[i].life = rand();
- if(!parts[i].ctype) parts[i].life = rand();
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();
orbitalparts_get(parts[i].life, parts[i].ctype, orbd, orbl);
for(r = 0; r < 4; r++){
if(orbd[r]<254){