diff options
| author | Simon <simon@hardwired.org.uk> | 2011-04-08 10:09:42 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-04-08 10:09:42 (GMT) |
| commit | 767d73c5fc51647dcb5da4ed8349da2186c5060c (patch) | |
| tree | e9cb3540858927af4887553068fd348a95195092 /src/elements/prto.c | |
| parent | 1bdf72be1a306ac07641211adb2ec1539e3d0a48 (diff) | |
| download | powder-767d73c5fc51647dcb5da4ed8349da2186c5060c.zip powder-767d73c5fc51647dcb5da4ed8349da2186c5060c.tar.gz | |
astyle
Diffstat (limited to 'src/elements/prto.c')
| -rw-r--r-- | src/elements/prto.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/elements/prto.c b/src/elements/prto.c index 40cf97c..46c7250 100644 --- a/src/elements/prto.c +++ b/src/elements/prto.c @@ -62,16 +62,16 @@ int update_PRTO(UPDATE_FUNC_ARGS) { } } } - 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]<254){ + for (r = 0; r < 4; r++) { + if (orbd[r]<254) { orbd[r] += 16; - if(orbd[r]>254){ + if (orbd[r]>254) { orbd[r] = 0; orbl[r] = rand()%255; } |
