(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user