Mercurial > public > ostc4
comparison Discovery/Src/simulation.c @ 176:1719b9d1094b max-depth
cleanup: do not assign to same
Interestingly, this weird line sometimes results in a compile error. Well
it seems useless anyhow.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Mon, 11 Mar 2019 20:20:17 +0100 |
parents | cc9c18075e00 |
children | 2bb1db22b5f5 |
comparison
equal
deleted
inserted
replaced
175:9da7dd50e2ec | 176:1719b9d1094b |
---|---|
614 timeThis = 0; | 614 timeThis = 0; |
615 if(actualDepthPoint > nextDepthPoint) // only if deco | 615 if(actualDepthPoint > nextDepthPoint) // only if deco |
616 { | 616 { |
617 // ascent time | 617 // ascent time |
618 timeThis = ((float)(actualDepthPoint - nextDepthPoint)) / sim_ascent_rate_meter_per_min_local; | 618 timeThis = ((float)(actualDepthPoint - nextDepthPoint)) / sim_ascent_rate_meter_per_min_local; |
619 actualDepthPoint = actualDepthPoint; // that is where we are | |
620 | 619 |
621 // deco stop time | 620 // deco stop time |
622 for(ptrDecoInfo=0;ptrDecoInfo < DECOINFO_STRUCT_MAX_STOPS; ptrDecoInfo++) | 621 for(ptrDecoInfo=0;ptrDecoInfo < DECOINFO_STRUCT_MAX_STOPS; ptrDecoInfo++) |
623 { | 622 { |
624 timeThis += decoInfoInput->output_stop_length_seconds[ptrDecoInfo] / 60; | 623 timeThis += decoInfoInput->output_stop_length_seconds[ptrDecoInfo] / 60; |