Commit Graph

531 Commits

Author SHA1 Message Date
frosch
7c04ea586d (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
0e51dab6a6 (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
aab0eff930 (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
8411b28dcf (svn r21901) -Codechange: Save some bits in p2 of CmdRefitVehicle. 2011-01-23 13:25:26 +00:00
frosch
6254ffc4d7 (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
05199a641a (svn r21890) -Cleanup: remove some unneeded includes 2011-01-22 14:52:20 +00:00
smatz
f2006f36a1 (svn r21875) -Codechange: indentation of some comments was wrong 2011-01-21 01:38:30 +00:00
alberth
5955e98b79 (svn r21666) -Codechange: Use GetCallbackWnd at more places. 2010-12-30 13:18:04 +00:00
rubidium
1446bfaac6 (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
7fc32d3763 (svn r21583) -Fix (r21566): The new scrollbar was not ignored correctly for ships and aircrafts. 2010-12-21 17:29:00 +00:00
terkhen
9ff41df5e1 (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
ab36448f46 (svn r21569) -Add: Don't close the refit window after refitting only a consist part. 2010-12-21 14:00:58 +00:00
terkhen
6848bb8eee (svn r21568) -Add: Show the selected consist part at the refit window. 2010-12-21 14:00:14 +00:00
terkhen
cf07974aaf (svn r21567) -Feature: Allow to refit only the selected part of a train consist. 2010-12-21 13:59:16 +00:00
terkhen
60f3dc16a7 (svn r21566) -Add: Draw current vehicle at the refit window. 2010-12-21 13:58:09 +00:00
terkhen
dfc460035b (svn r21565) -Codechange: Add pixel skip to DrawRoadVehImage(). 2010-12-21 13:56:52 +00:00
terkhen
df2a2615a4 (svn r21563) -Codechange: Add function to get the width of a vehicle. 2010-12-21 13:54:57 +00:00
terkhen
f1c0366667 (svn r21560) -Codechange: Declare DrawVehicleImage in its header. 2010-12-21 13:50:31 +00:00
terkhen
080a52faf2 (svn r21559) -Add: Disable the refit button until a refit option is selected. 2010-12-21 13:49:42 +00:00
terkhen
f69d280f14 (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
f7c4d35f67 (svn r21519) -Codechange: Allow direct access to the GroundVehicleCache from a Vehicle. 2010-12-14 21:31:00 +00:00
terkhen
74c061c29a (svn r21518) -Codechange: Rename AccelerationCache to GroundVehicleCache. 2010-12-14 21:28:45 +00:00
terkhen
47c9189002 (svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class. 2010-12-14 21:26:03 +00:00
terkhen
57790abb75 (svn r21515) -Codechange: Use cached_total_length where appropiate. 2010-12-14 21:24:51 +00:00
rubidium
e4c8f79f94 (svn r21416) -Codechange: limit vehicle name by amount of characters, not bytes 2010-12-05 22:25:49 +00:00
terkhen
64c200a25e (svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU. 2010-11-27 22:52:12 +00:00
alberth
0722492c1b (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 2010-11-26 15:22:18 +00:00
terkhen
b4c22e854f (svn r21214) -Add: Display mail capacity when refitting an aircraft to passengers. 2010-11-16 20:56:04 +00:00
rubidium
5ec2bcc0d9 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 2010-11-13 09:56:25 +00:00
terkhen
25e638adcb (svn r21099) -Codechange: Store road vehicle max speed in the vehicle cache. 2010-11-06 13:05:11 +00:00
terkhen
79ab8cb571 (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
ca755e983c (svn r21097) -Codechange: Unify cached max speed for all vehicle types. 2010-11-06 12:53:31 +00:00
terkhen
943c732756 (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
377d11886c (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
310de59b0f (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
699e077b6e (svn r20921) -Fix [FS#4160]: Refit costs were not shown for long cargo names. 2010-10-15 10:22:04 +00:00
rubidium
713165fba9 (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
eeb53fc575 (svn r20773) -Codechange: use packed VehicleListIdentifiers for some commands as well 2010-09-08 21:40:00 +00:00
rubidium
1664ac1eb5 (svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers 2010-09-08 21:37:13 +00:00
rubidium
fcb4cfedb0 (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
91ea9c969f (svn r20770) -Codechange: move some bits around in CmdMassStartStop's parameters 2010-09-08 21:14:41 +00:00
rubidium
56ebc2359e (svn r20769) -Codechange: move some depot flags from p2 to p1 in CmdSendVehicleToDepot 2010-09-08 21:02:12 +00:00
rubidium
db3a6485d7 (svn r20768) -Codechange: unify send-to-depot commands 2010-09-08 18:55:58 +00:00
smatz
63b8fea69f (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
46acb837eb (svn r20720) -Add: separate GUI icons for vehicle/company profit, exclusive rights and unread news. 2010-09-02 20:00:48 +00:00
frosch
41dac2e579 (svn r20719) -Codechange: Remove some hardcoded iconsizes. 2010-09-02 19:34:44 +00:00
rubidium
360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 2010-08-26 22:01:16 +00:00
rubidium
27e45d96a4 (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
f4174fcc2f (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
e68cf6bd81 (svn r20539) -Codechange: make order backups more self-contained. 2010-08-18 15:15:59 +00:00