summaryrefslogtreecommitdiff
path: root/src/ai/trolly
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-06 15:09:45 +0000
committerrubidium <rubidium@openttd.org>2008-04-06 15:09:45 +0000
commitfb1c4eccd840cd05ee3bf00c3b757829c9c72ef0 (patch)
tree902d510152ab0f94357b64fda309b662a1637e12 /src/ai/trolly
parent5d8e3adcccda4b89b03c925c5d061621df2e5e10 (diff)
downloadopenttd-fb1c4eccd840cd05ee3bf00c3b757829c9c72ef0.tar.xz
(svn r12593) -Codechange: hide Order's flags in most of the code.
Diffstat (limited to 'src/ai/trolly')
-rw-r--r--src/ai/trolly/trolly.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/trolly/trolly.cpp b/src/ai/trolly/trolly.cpp
index 46aa0f10d..d62044705 100644
--- a/src/ai/trolly/trolly.cpp
+++ b/src/ai/trolly/trolly.cpp
@@ -1191,13 +1191,13 @@ static void AiNew_State_GiveOrders(Player *p)
idx = 0;
order.MakeGoToStation(GetStationIndex(_players_ainew[p->index].to_tile));
if (_players_ainew[p->index].tbt == AI_TRUCK && _players_ainew[p->index].to_deliver)
- order.flags |= OFB_FULL_LOAD;
+ order.SetLoadType(OFB_FULL_LOAD);
AI_DoCommand(0, _players_ainew[p->index].veh_id + (idx << 16), order.Pack(), DC_EXEC, CMD_INSERT_ORDER);
idx = 0;
order.MakeGoToStation(GetStationIndex(_players_ainew[p->index].from_tile));
if (_players_ainew[p->index].tbt == AI_TRUCK && _players_ainew[p->index].from_deliver)
- order.flags |= OFB_FULL_LOAD;
+ order.SetLoadType(OFB_FULL_LOAD);
AI_DoCommand(0, _players_ainew[p->index].veh_id + (idx << 16), order.Pack(), DC_EXEC, CMD_INSERT_ORDER);
// Start the engines!