mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-12 15:30:55 +00:00
ksp: minor fixes and variable collisions
This commit is contained in:
parent
a10d80b1ad
commit
50e4256961
@ -109,12 +109,15 @@ int main(int argc, char **argv) {
|
|||||||
engines[1]=2; stacks[1]=2; tanks[1]=1;
|
engines[1]=2; stacks[1]=2; tanks[1]=1;
|
||||||
engines[2]=3; stacks[2]=3; tanks[2]=1;
|
engines[2]=3; stacks[2]=3; tanks[2]=1;
|
||||||
|
|
||||||
|
/* 1000 */
|
||||||
for(i=0;i<stages;i++) {
|
for(i=0;i<stages;i++) {
|
||||||
stage_empty_mass[i]=(engines[i]*1.5)+(stacks[i]*tanks[i]*0.5)+capsule_mass;/* tons */
|
stage_empty_mass[i]=(engines[i]*1.5)+(stacks[i]*tanks[i]*0.5);
|
||||||
|
if (i==0) stage_empty_mass[i]+=capsule_mass;/* tons */
|
||||||
fuel_mass[i]=(stacks[i]*tanks[i]*4.0);
|
fuel_mass[i]=(stacks[i]*tanks[i]*4.0);
|
||||||
stage_fuel_total[i]=fuel_mass[i];
|
stage_fuel_total[i]=fuel_mass[i];
|
||||||
stage_full_mass[i]=stage_empty_mass[i]+fuel_mass[i];
|
stage_full_mass[i]=stage_empty_mass[i]+fuel_mass[i];
|
||||||
|
|
||||||
|
/* 1020 */
|
||||||
total_mass[i]=0.0;
|
total_mass[i]=0.0;
|
||||||
for(j=i;j>=0;j--) {
|
for(j=i;j>=0;j--) {
|
||||||
total_mass[i]+=stage_full_mass[j];
|
total_mass[i]+=stage_full_mass[j];
|
||||||
|
@ -44,4 +44,4 @@
|
|||||||
1330 PRINT "HOW MANY PARACHUTES? (0-3)";
|
1330 PRINT "HOW MANY PARACHUTES? (0-3)";
|
||||||
1340 INPUT P
|
1340 INPUT P
|
||||||
1350 PRINT "HOW MANY STRUTS? (0-20000)";
|
1350 PRINT "HOW MANY STRUTS? (0-20000)";
|
||||||
1360 INPUT ST
|
1360 INPUT SR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user