Mercurial > public > mk2
comparison code_part1/OSTC_code_c_part2/p2_deco.c @ 290:4dbff2aa31ee
Hunting for refusing to ignore disabled gas in list...
+ Keep gaslist in order.
author | JeanDo |
---|---|
date | Fri, 22 Apr 2011 00:13:39 +0200 |
parents | 9feb224f6871 |
children | 21a0f7393468 |
comparison
equal
deleted
inserted
replaced
289:6d8a2550c9ea | 290:4dbff2aa31ee |
---|---|
969 // Make sure to detect if we are already breathing some gas in | 969 // Make sure to detect if we are already breathing some gas in |
970 // the current list (happends when first gas do have a depth). | 970 // the current list (happends when first gas do have a depth). |
971 if( N2 == char_I_deco_N2_ratio[j] | 971 if( N2 == char_I_deco_N2_ratio[j] |
972 && He == char_I_deco_He_ratio[j] | 972 && He == char_I_deco_He_ratio[j] |
973 ) | 973 ) |
974 { | 974 { |
975 temp_depth_limit = sim_gas_last_depth = char_I_deco_gas_change[j]; | 975 if( char_I_deco_gas_change[j] ) |
976 temp_depth_limit = sim_gas_last_depth = char_I_deco_gas_change[j]; | |
976 sim_gas_last_used = j+1; | 977 sim_gas_last_used = j+1; |
977 break; | 978 break; |
978 } | 979 } |
979 } | 980 } |
980 | 981 |