Mercurial > hg > openttd
diff src/saveload/afterload.cpp @ 17693:cdeed5a57cdb draft
(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added
author | planetmaker <planetmaker@openttd.org> |
---|---|
date | Wed, 18 May 2011 12:19:58 +0000 (2011-05-18) |
parents | 028cef4dc3bd |
children | 6e539d6e9fe0 |
line wrap: on
line diff
--- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -2565,9 +2565,9 @@ 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(); } }