Mercurial > hg > openttd
diff src/openttd.cpp @ 8838:db9c6b0c9f07 draft
(svn r12586) -Codechange: do not access an order's refit variables directly.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 06 Apr 2008 07:07:21 +0000 |
parents | 890a77315801 |
children | c3d2f0eb69a1 |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1987,13 +1987,11 @@ Vehicle *v; FOR_ALL_ORDERS(order) { - order->refit_cargo = CT_NO_REFIT; - order->refit_subtype = CT_NO_REFIT; + order->SetRefit(CT_NO_REFIT); } FOR_ALL_VEHICLES(v) { - v->current_order.refit_cargo = CT_NO_REFIT; - v->current_order.refit_subtype = CT_NO_REFIT; + v->current_order.SetRefit(CT_NO_REFIT); } }