(svn r12593) -Codechange: hide Order's flags in most of the code.
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user