Mercurial > hg > openttd
comparison src/openttd.cpp @ 8840:c3d2f0eb69a1 draft
(svn r12588) -Codechange: do not access the destination of an order directly.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 06 Apr 2008 07:48:51 +0000 |
parents | db9c6b0c9f07 |
children | 1f412a20da48 |
comparison
equal
deleted
inserted
replaced
8839:ebb630745ebc | 8840:c3d2f0eb69a1 |
---|---|
2303 | 2303 |
2304 if (CheckSavegameVersion(84)) { | 2304 if (CheckSavegameVersion(84)) { |
2305 /* Update go to buoy orders because they are just waypoints */ | 2305 /* Update go to buoy orders because they are just waypoints */ |
2306 Order *order; | 2306 Order *order; |
2307 FOR_ALL_ORDERS(order) { | 2307 FOR_ALL_ORDERS(order) { |
2308 if (order->IsType(OT_GOTO_STATION) && GetStation(order->dest)->IsBuoy()) { | 2308 if (order->IsType(OT_GOTO_STATION) && GetStation(order->GetDestination())->IsBuoy()) { |
2309 order->flags = 0; | 2309 order->flags = 0; |
2310 } | 2310 } |
2311 } | 2311 } |
2312 | 2312 |
2313 /* Set all share owners to PLAYER_SPECTATOR for | 2313 /* Set all share owners to PLAYER_SPECTATOR for |