Mercurial > public > ostc4
comparison Discovery/Src/simulation.c @ 830:b7d93ff6b3b2 Evo_2_23
Added selection if an active gas shall be used for deco calculation or not:
In previous version selecting a gas as deco gas automatically activated the gas for deco calculation. Some divers prever to have the deco time displayed which matches to the gas currently in use. These divers kept the gas deactivated unless they switch to it. Features like gas usability visualization or easy gas change using quick selection were not usable for these divers. With introduction of the new option the gas switching / visualization features may be used without having the gas been considered for calculation in the background. The option may be operated in the gas selection menu.
author | Ideenmodellierer |
---|---|
date | Thu, 16 Nov 2023 20:32:09 +0100 |
parents | 1e688b630a6e |
children | 07af9efd7c13 |
comparison
equal
deleted
inserted
replaced
829:d5e68cc08f9a | 830:b7d93ff6b3b2 |
---|---|
464 gasChangeListDepthGas20x2[ptrGasChangeList++] = 255; | 464 gasChangeListDepthGas20x2[ptrGasChangeList++] = 255; |
465 | 465 |
466 // ascend (deco) gases | 466 // ascend (deco) gases |
467 for(int i=1; i<=5;i++) | 467 for(int i=1; i<=5;i++) |
468 { | 468 { |
469 if(pDiveState->diveSettings.decogaslist[i].change_during_ascent_depth_meter_otherwise_zero == 0) | 469 if((pDiveState->diveSettings.decogaslist[i].change_during_ascent_depth_meter_otherwise_zero == 0) |
470 || (pDiveState->diveSettings.gas[pDiveState->diveSettings.decogaslist[i].GasIdInSettings].note.ub.decocalc == 0)) | |
470 break; | 471 break; |
471 gasChangeListDepthGas20x2[ptrGasChangeList++] = pDiveState->diveSettings.decogaslist[i].change_during_ascent_depth_meter_otherwise_zero; | 472 gasChangeListDepthGas20x2[ptrGasChangeList++] = pDiveState->diveSettings.decogaslist[i].change_during_ascent_depth_meter_otherwise_zero; |
472 gasChangeListDepthGas20x2[ptrGasChangeList++] = pDiveState->diveSettings.decogaslist[i].GasIdInSettings; | 473 gasChangeListDepthGas20x2[ptrGasChangeList++] = pDiveState->diveSettings.decogaslist[i].GasIdInSettings; |
473 } | 474 } |
474 gasChangeListDepthGas20x2[0] = 0; | 475 gasChangeListDepthGas20x2[0] = 0; |