# HG changeset patch # User matthijs # Date 1115158720 0 # Node ID 0aaab00077315395994e43d3efc435a0ad1ccd34 # Parent ea38d61938874f666d15b33dee9b66f66c954b57 (svn r2264) - Fix: [ 1060686 1187655 ] Changing the full-load flag on the current order doesn't take effect immediately. (glx) diff -r ea38d6193887 -r 0aaab0007731 order_cmd.c --- a/order_cmd.c Tue May 03 22:05:34 2005 +0000 +++ b/order_cmd.c Tue May 03 22:18:40 2005 +0000 @@ -534,7 +534,7 @@ /** * - * Add an order to the orderlist of a vehicle + * Modify an order in the orderlist of a vehicle * * @param veh_sel First 16 bits are the ID of the vehicle. The next 16 are the selected order (if any) * If the lastone is given, order will be inserted above thatone @@ -580,10 +580,14 @@ return CMD_ERROR; } - /* Update the windows, also for vehicles that share the same order list */ + /* Update the windows and full load flags, also for vehicles that share the same order list */ { Vehicle *u = GetFirstVehicleFromSharedList(v); while (u != NULL) { + /* toggle u->current_order "Full load" flag if it changed */ + if (sel == u->cur_order_index && + HASBIT(u->current_order.flags, OFB_FULL_LOAD) != HASBIT(order->flags, OFB_FULL_LOAD)) + TOGGLEBIT(u->current_order.flags, OFB_FULL_LOAD); InvalidateVehicleOrder(u); u = u->next_shared; }