diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-03-27 17:13:52 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-04-04 15:10:03 (GMT) |
| commit | 592b923b6610bf5f90812a8f514abb8ce4f677d1 (patch) | |
| tree | 059e5360acf98cc7cdcdd43f4918e6216ad8259c /src/elements | |
| parent | 651208c5fbba5d0703e174a6abe2c8a228730803 (diff) | |
| download | powder-592b923b6610bf5f90812a8f514abb8ce4f677d1.zip powder-592b923b6610bf5f90812a8f514abb8ce4f677d1.tar.gz | |
Finish WIN32 register_extension, fix Visual Studio compile
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/prti.c | 4 | ||||
| -rw-r--r-- | src/elements/prto.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/elements/prti.c b/src/elements/prti.c index 2b08aae..5c34cf9 100644 --- a/src/elements/prti.c +++ b/src/elements/prti.c @@ -42,10 +42,10 @@ int update_PRTI(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]>1){ 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){ |
