Mercurial > public > hwos_code
comparison src/p2_deco.c @ 210:7dbc1d780ca5
do not clear char_O_deco_gas in copy_deco_table
author | heinrichsweikamp |
---|---|
date | Sun, 07 Dec 2014 23:04:16 +0100 |
parents | 42a2cfc3e85d |
children | 31088352ee32 |
comparison
equal
deleted
inserted
replaced
209:56276a2418f9 | 210:7dbc1d780ca5 |
---|---|
632 | 632 |
633 //---- Third: fill table end with null | 633 //---- Third: fill table end with null |
634 for(y++; y<NUM_STOPS; y++) | 634 for(y++; y<NUM_STOPS; y++) |
635 { | 635 { |
636 char_O_deco_time_for_log [y] = 0; | 636 char_O_deco_time_for_log [y] = 0; |
637 char_O_deco_gas [y] = 0; | |
638 } | 637 } |
639 } | 638 } |
640 } | 639 } |
641 | 640 |
642 ////////////////////////////////////////////////////////////////////////////// | 641 ////////////////////////////////////////////////////////////////////////////// |
2059 //---- Do all further stops ------------------------------------------ | 2058 //---- Do all further stops ------------------------------------------ |
2060 for(i=0; i<NUM_STOPS; ++i) | 2059 for(i=0; i<NUM_STOPS; ++i) |
2061 { | 2060 { |
2062 overlay unsigned char stop_gas; | 2061 overlay unsigned char stop_gas; |
2063 | 2062 |
2064 //---- Get next stop, possibly in reverse order ------------------ | 2063 //---- Get next stop --------------------------------------------- |
2065 { | 2064 { |
2066 time = char_O_deco_time[(NUM_STOPS-1)-i]; | 2065 time = char_O_deco_time[(NUM_STOPS-1)-i]; |
2067 temp_depth_limit = char_O_deco_depth[(NUM_STOPS-1)-i]; | 2066 temp_depth_limit = char_O_deco_depth[(NUM_STOPS-1)-i]; |
2068 stop_gas = char_O_deco_gas[(NUM_STOPS-1)-i]; | 2067 stop_gas = char_O_deco_gas[(NUM_STOPS-1)-i]; |
2069 } | 2068 } |