* Copy data from temporary engine array into the real engine pool. */
| 94 | * Copy data from temporary engine array into the real engine pool. |
| 95 | */ |
| 96 | void CopyTempEngineData() |
| 97 | { |
| 98 | for (Engine *e : Engine::Iterate()) { |
| 99 | if (e->index >= _temp_engine.size()) break; |
| 100 | |
| 101 | const Engine *se = GetTempDataEngine(e->index); |
| 102 | e->intro_date = se->intro_date; |
| 103 | e->age = se->age; |
| 104 | e->reliability = se->reliability; |
| 105 | e->reliability_spd_dec = se->reliability_spd_dec; |
| 106 | e->reliability_start = se->reliability_start; |
| 107 | e->reliability_max = se->reliability_max; |
| 108 | e->reliability_final = se->reliability_final; |
| 109 | e->duration_phase_1 = se->duration_phase_1; |
| 110 | e->duration_phase_2 = se->duration_phase_2; |
| 111 | e->duration_phase_3 = se->duration_phase_3; |
| 112 | e->flags = se->flags; |
| 113 | e->preview_asked = se->preview_asked; |
| 114 | e->preview_company = se->preview_company; |
| 115 | e->preview_wait = se->preview_wait; |
| 116 | e->company_avail = se->company_avail; |
| 117 | e->company_hidden = se->company_hidden; |
| 118 | e->name = se->name; |
| 119 | } |
| 120 | |
| 121 | ResetTempEngineData(); |
| 122 | } |
| 123 | |
| 124 | void ResetTempEngineData() |
| 125 | { |
no test coverage detected