summaryrefslogtreecommitdiff
path: root/src/elements/prti.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2011-04-08 10:09:42 (GMT)
committer Simon <simon@hardwired.org.uk>2011-04-08 10:09:42 (GMT)
commit767d73c5fc51647dcb5da4ed8349da2186c5060c (patch)
treee9cb3540858927af4887553068fd348a95195092 /src/elements/prti.c
parent1bdf72be1a306ac07641211adb2ec1539e3d0a48 (diff)
downloadpowder-767d73c5fc51647dcb5da4ed8349da2186c5060c.zip
powder-767d73c5fc51647dcb5da4ed8349da2186c5060c.tar.gz
astyle
Diffstat (limited to 'src/elements/prti.c')
-rw-r--r--src/elements/prti.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/elements/prti.c b/src/elements/prti.c
index 5c34cf9..f51c21c 100644
--- a/src/elements/prti.c
+++ b/src/elements/prti.c
@@ -39,18 +39,18 @@ int update_PRTI(UPDATE_FUNC_ARGS) {
break;
}
}
-
-
- if(fe){
+
+
+ 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].life = rand();
+ 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]>1){
+ for (r = 0; r < 4; r++) {
+ if (orbd[r]>1) {
orbd[r] -= 12;
- if(orbd[r]<1){
+ if (orbd[r]<1) {
orbd[r] = (rand()%128)+128;
orbl[r] = rand()%255;
} else {