Commit Graph

431 Commits

Author SHA1 Message Date
frosch a97d52a29a (svn r21933) -Codechange: Split cur_order_index into cur_auto_order_index and cur_real_order_index to keep track of the current real order in an unambiguous way.
-Fix [FS#4440]: Automatic orders behave now stable wrt. service orders and are not added or removed depending on the need of servicing.
-Fix: Various other issues with automatic orders, e.g. vehicles getting stuck with "no orders" when there are automatic orders at the end of the order list.
2011-01-31 20:44:15 +00:00
terkhen 734994c9ba (svn r21924) -Codechange: Unify some parts of the articulated vehicle code.
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
2011-01-29 17:30:25 +00:00
frosch 9a1c0f139a (svn r21902) -Fix: Do not count articulated parts when passing the number of vehicles to refit to the command. That may exceed 8 bits. 2011-01-23 14:58:54 +00:00
frosch 3f103c35a6 (svn r21901) -Codechange: Save some bits in p2 of CmdRefitVehicle. 2011-01-23 13:25:26 +00:00
frosch 890a18c738 (svn r21899) -Fix: Do not show a vehicle selection in the RefitWindow for refit orders. You cannot select anything anyway. 2011-01-23 13:00:50 +00:00
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 2011-01-22 14:52:20 +00:00
smatz 656caf16db (svn r21875) -Codechange: indentation of some comments was wrong 2011-01-21 01:38:30 +00:00
alberth cedb07bba3 (svn r21666) -Codechange: Use GetCallbackWnd at more places. 2010-12-30 13:18:04 +00:00
rubidium 28f16a732f (svn r21644) -Change: keep showing "No orders" when the order list is filled with only automatic orders 2010-12-26 13:25:34 +00:00
terkhen b9f93a48e9 (svn r21583) -Fix (r21566): The new scrollbar was not ignored correctly for ships and aircrafts. 2010-12-21 17:29:00 +00:00
terkhen 884b44990a (svn r21570) -Add: Allow to select a vehicle and the following chain with a keyboard shortcut. 2010-12-21 14:01:44 +00:00
terkhen ea7c33ca6d (svn r21569) -Add: Don't close the refit window after refitting only a consist part. 2010-12-21 14:00:58 +00:00
terkhen 3e6ebc7158 (svn r21568) -Add: Show the selected consist part at the refit window. 2010-12-21 14:00:14 +00:00
terkhen f8c31319e9 (svn r21567) -Feature: Allow to refit only the selected part of a train consist. 2010-12-21 13:59:16 +00:00
terkhen 96f706fa83 (svn r21566) -Add: Draw current vehicle at the refit window. 2010-12-21 13:58:09 +00:00
terkhen a136200c39 (svn r21565) -Codechange: Add pixel skip to DrawRoadVehImage(). 2010-12-21 13:56:52 +00:00
terkhen 759a596e0b (svn r21563) -Codechange: Add function to get the width of a vehicle. 2010-12-21 13:54:57 +00:00
terkhen d92f29b822 (svn r21560) -Codechange: Declare DrawVehicleImage in its header. 2010-12-21 13:50:31 +00:00
terkhen 53120a566c (svn r21559) -Add: Disable the refit button until a refit option is selected. 2010-12-21 13:49:42 +00:00
terkhen 48b7916458 (svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains. 2010-12-14 21:33:53 +00:00
terkhen a4a9274177 (svn r21519) -Codechange: Allow direct access to the GroundVehicleCache from a Vehicle. 2010-12-14 21:31:00 +00:00
terkhen 12c86a1391 (svn r21518) -Codechange: Rename AccelerationCache to GroundVehicleCache. 2010-12-14 21:28:45 +00:00
terkhen 79e2b3153d (svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class. 2010-12-14 21:26:03 +00:00
terkhen 96b98b392a (svn r21515) -Codechange: Use cached_total_length where appropiate. 2010-12-14 21:24:51 +00:00
rubidium ea68039718 (svn r21416) -Codechange: limit vehicle name by amount of characters, not bytes 2010-12-05 22:25:49 +00:00
terkhen 75f86a7a21 (svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU. 2010-11-27 22:52:12 +00:00
alberth f5c6fd1a25 (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 2010-11-26 15:22:18 +00:00
terkhen c96cb9ce37 (svn r21214) -Add: Display mail capacity when refitting an aircraft to passengers. 2010-11-16 20:56:04 +00:00
rubidium 30637a8340 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 2010-11-13 09:56:25 +00:00
terkhen 18e3a3ddfc (svn r21099) -Codechange: Store road vehicle max speed in the vehicle cache. 2010-11-06 13:05:11 +00:00
terkhen 25d1b2f54b (svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time. 2010-11-06 13:03:17 +00:00
terkhen c8a56f17f8 (svn r21097) -Codechange: Unify cached max speed for all vehicle types. 2010-11-06 12:53:31 +00:00
terkhen 78d0a1cb1a (svn r21096) -Fix: Display the real max speed for aircrafts instead of always using the engine value. 2010-11-06 12:50:34 +00:00
belugas fc0e64586c (svn r21083) -Codechange: Limit the number of exceptions in the refittable cargo list to 7 (Eddi) 2010-11-04 19:48:25 +00:00
planetmaker c2a7b82a9f (svn r20997) -Fix: Size of sort buttons for order and vehicle list gui could be too small 2010-10-19 21:48:20 +00:00
terkhen 4eaf01fcdb (svn r20921) -Fix [FS#4160]: Refit costs were not shown for long cargo names. 2010-10-15 10:22:04 +00:00
rubidium 7f8b490a21 (svn r20777) -Codechange: make VehicleListIdentifier a variable of BaseVehicleList and use that instead of "dereferencing" the window number and storing some information twice 2010-09-09 14:40:39 +00:00
rubidium 4b605f51ab (svn r20773) -Codechange: use packed VehicleListIdentifiers for some commands as well 2010-09-08 21:40:00 +00:00
rubidium f5128695c5 (svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers 2010-09-08 21:37:13 +00:00
rubidium 881c6c679f (svn r20771) -Add: concept of vehicle list identifiers to identify a vehicle list instead of a string of parameters 2010-09-08 21:28:50 +00:00
rubidium 0e840f7360 (svn r20770) -Codechange: move some bits around in CmdMassStartStop's parameters 2010-09-08 21:14:41 +00:00
rubidium ea4b40704b (svn r20769) -Codechange: move some depot flags from p2 to p1 in CmdSendVehicleToDepot 2010-09-08 21:02:12 +00:00
rubidium 9badab6454 (svn r20768) -Codechange: unify send-to-depot commands 2010-09-08 18:55:58 +00:00
smatz fd54943c7a (svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window 2010-09-06 14:14:09 +00:00
frosch 48767d1bef (svn r20720) -Add: separate GUI icons for vehicle/company profit, exclusive rights and unread news. 2010-09-02 20:00:48 +00:00
frosch 48d8f16653 (svn r20719) -Codechange: Remove some hardcoded iconsizes. 2010-09-02 19:34:44 +00:00
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 2010-08-26 22:01:16 +00:00
rubidium 926594b599 (svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands. 2010-08-18 20:48:38 +00:00
rubidium 019878118d (svn r20545) -Codechange: make sure an OrderBackup gets cleared when the depot it belongs to gets removed, the depot window gets closed or when another vehicle gets sold in a depot 2010-08-18 18:52:16 +00:00
rubidium 38ca44594f (svn r20539) -Codechange: make order backups more self-contained. 2010-08-18 15:15:59 +00:00