From d275109e79c191dde34b71f07e5a39cfeb11fba7 Mon Sep 17 00:00:00 2001 From: truelight Date: Sat, 15 Jan 2005 19:06:22 +0000 Subject: (svn r1525) -Codechange: rewrote the _order_array, now it can be made dynamic. -Codechange: renamed all 'schedule' stuff to 'order(list)' -Codechange: moved all order-stuff to order_cmd.c / order.h -Codechange: vehicles that share orders are now linked to eachother with next_shared/prev_shared in Vehicle Developers: please use AssignOrder to assign data to an order. If not, you _WILL_ make the save-routine to assert! --- ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai.c') diff --git a/ai.c b/ai.c index 0bd26e46f..3560ad639 100644 --- a/ai.c +++ b/ai.c @@ -3618,7 +3618,7 @@ static void AiStateRemoveStation(Player *p) // Get a list of all stations that are in use by a vehicle memset(in_use, 0, sizeof(in_use)); - for (ord = _order_array; ord != _ptr_to_next_order; ++ord) { + FOR_ALL_ORDERS(ord) { if (ord->type == OT_GOTO_STATION) in_use[ord->station] = 1; } -- cgit v1.2.3-54-g00ecf