Old revision #pmcrgkitz | New revision #ph2fsvnnz | ||
---|---|---|---|
21 | + if (old_pos == new_pos) return; | 21 | + if (old_pos == new_pos) return; |
22 | + if (v->flight_counter == UINT16_MAX || (v->vehstatus & VS_AIRCRAFT_BROKEN)) return; | 22 | + if (v->flight_counter == UINT16_MAX || (v->vehstatus & VS_AIRCRAFT_BROKEN)) return; |
23 | + | 23 | + |
24 | + v->flight_counter = | 24 | + v->flight_counter = v->flight_counter < UINT16_MAX - 1 ? v->flight_counter + 1 : UINT16_MAX; |
25 | + } | 25 | + } |
26 | }; | 26 | }; |
27 | 27 | … | … |
154 | +guiflags = SGF_0ISDISABLED | 154 | +guiflags = SGF_0ISDISABLED |
155 | +def = 100 | 155 | +def = 100 |
156 | +min = 0 | 156 | +min = 0 |
157 | +max = | 157 | +max = 65535 |
158 | +interval = 5 | 158 | +interval = 5 |
159 | +str = STR_CONFIG_SETTING_PLANE_BREAKDOWN_DIST | 159 | +str = STR_CONFIG_SETTING_PLANE_BREAKDOWN_DIST |
160 | +strhelp = STR_CONFIG_SETTING_PLANE_BREAKDOWN_DIST_HELPTEXT | 160 | +strhelp = STR_CONFIG_SETTING_PLANE_BREAKDOWN_DIST_HELPTEXT |