(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added

This commit is contained in:
planetmaker
2011-05-18 12:19:58 +00:00
parent 98be653315
commit 7aa57e4acd
65 changed files with 207 additions and 207 deletions

View File

@@ -2565,9 +2565,9 @@ bool AfterLoadGame()
if (!v->IsPrimaryVehicle()) continue;
/* Older versions are less strict with indices being in range and fix them on the fly */
if (v->cur_auto_order_index >= v->GetNumOrders()) v->cur_auto_order_index = 0;
if (v->cur_implicit_order_index >= v->GetNumOrders()) v->cur_implicit_order_index = 0;
v->cur_real_order_index = v->cur_auto_order_index;
v->cur_real_order_index = v->cur_implicit_order_index;
v->UpdateRealOrderIndex();
}
}