rubidium
8c335b8db6
(svn r22845) -Fix [FS#4745]: perform stricter checks on some commands (monoid)
13 years ago
rubidium
4836a6e50e
(svn r22845) -Fix [FS#4745]: perform stricter checks on some commands (monoid)
13 years ago
frosch
03ca1c2c39
(svn r22620) -Change [FS#4651]: Enforce refit orders to be 'always go to depot' orders; service-only and stop-in-depot orders make no sense with refitting.
14 years ago
frosch
55a21a940d
(svn r22620) -Change [FS#4651]: Enforce refit orders to be 'always go to depot' orders; service-only and stop-in-depot orders make no sense with refitting.
14 years ago
frosch
9219281a2b
(svn r22589) -Fix [FS#4641]: PBS order forecasting modified the current order index in case of a goto-nearest-depot order and no depot could be found.
14 years ago
frosch
f71a96d584
(svn r22589) -Fix [FS#4641]: PBS order forecasting modified the current order index in case of a goto-nearest-depot order and no depot could be found.
14 years ago
planetmaker
7aa57e4acd
(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added
14 years ago
planetmaker
43c8cd1d5e
(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added
14 years ago
frosch
58c4de2caf
(svn r22331) -Change: When inserting an (automatic) order A in front of an order B, disable modifications of automatic orders for all vehicles currently heading for B as we do not know whether they will reach A or B first. (except for the vehicle causing the insertion of the automatic order itself)
14 years ago
frosch
8dd2f413bd
(svn r22331) -Change: When inserting an (automatic) order A in front of an order B, disable modifications of automatic orders for all vehicles currently heading for B as we do not know whether they will reach A or B first. (except for the vehicle causing the insertion of the automatic order itself)
14 years ago
frosch
aee1e06273
(svn r22330) -Change: When a conditional order triggers and causes skipping to a particular order, disable modifications to automatic orders. till reaching the next real order, as we do not know whether to change the targets of conditional orders when inserting automatic orders. (So, when the vehicle skips to an order and later inserts an automatic order, the conditional order will still point to the same order, so the automatic order will be inserted again the next time.)
14 years ago
frosch
181fd5e3ab
(svn r22330) -Change: When a conditional order triggers and causes skipping to a particular order, disable modifications to automatic orders. till reaching the next real order, as we do not know whether to change the targets of conditional orders when inserting automatic orders. (So, when the vehicle skips to an order and later inserts an automatic order, the conditional order will still point to the same order, so the automatic order will be inserted again the next time.)
14 years ago
frosch
5429d70496
(svn r22326) -Fix: Destinations of conditional orders were update incorrectly when deleting orders in front of the conditional orders, if the target order wwas the order just before of the conditional order.
14 years ago
frosch
30b4bad60c
(svn r22326) -Fix: Destinations of conditional orders were update incorrectly when deleting orders in front of the conditional orders, if the target order wwas the order just before of the conditional order.
14 years ago
smatz
cc731e256e
(svn r22200) -Fix (r21642): removing a station order could stop when removing first automatic order
14 years ago
smatz
469c448eb0
(svn r22200) -Fix (r21642): removing a station order could stop when removing first automatic order
14 years ago
smatz
c85e1c3089
(svn r22116) -Codechange: use PoolBase::Clean() at more places
14 years ago
smatz
756cc6cf65
(svn r22116) -Codechange: use PoolBase::Clean() at more places
14 years ago
yexo
f71d55a5ec
(svn r22105) -Fix: crash when copying an orderlist to a vehicle that already had orders
14 years ago
yexo
72e027e4d6
(svn r22105) -Fix: crash when copying an orderlist to a vehicle that already had orders
14 years ago
frosch
d762b17f40
(svn r22046) -Fix [FS#4487]: Make sure order indices stay in range when copying, sharing, unsharing or deleting all orders.
14 years ago
frosch
b7713a7e85
(svn r22046) -Fix [FS#4487]: Make sure order indices stay in range when copying, sharing, unsharing or deleting all orders.
14 years ago
frosch
84514c8333
(svn r22045) -Codechange: Move cancelling the current loading order on deleting the current order to a separate function.
14 years ago
frosch
3a787f5a0b
(svn r22045) -Codechange: Move cancelling the current loading order on deleting the current order to a separate function.
14 years ago
smatz
17b2021297
(svn r22024) -Fix [FS#4468]: verify we can allocate an OrderList before we actually try to do so (Rubidium)
14 years ago
smatz
364ef8e6e6
(svn r22024) -Fix [FS#4468]: verify we can allocate an OrderList before we actually try to do so (Rubidium)
14 years ago
rubidium
8183922813
(svn r22021) -Fix (r22019): ofcourse make doesn't notice files are gone, so it doesn't recompile everything that needs to be recompiled...
14 years ago
rubidium
1d0d7635e0
(svn r22021) -Fix (r22019): ofcourse make doesn't notice files are gone, so it doesn't recompile everything that needs to be recompiled...
14 years ago
rubidium
1afea0803f
(svn r21961) -Remove: limitation that not loading and not unloading is mutual exclusive
14 years ago
rubidium
773c6765e6
(svn r21961) -Remove: limitation that not loading and not unloading is mutual exclusive
14 years ago
frosch
3847bac973
(svn r21934) -Fix (r21933): The original plan was to run the regression before committing.
14 years ago
frosch
49ea0e9092
(svn r21934) -Fix (r21933): The original plan was to run the regression before committing.
14 years ago
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.
14 years ago
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.
14 years ago
rubidium
0cf2ef83f0
(svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s].
14 years ago
rubidium
9ca4b629cd
(svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s].
14 years ago
rubidium
6ae5911ed0
(svn r21809) -Fix [FS#4404]: remove unreached automatic orders as well when reaching an ordered waypoint or depot (fonsinchen)
14 years ago
rubidium
bd9f07e5a0
(svn r21809) -Fix [FS#4404]: remove unreached automatic orders as well when reaching an ordered waypoint or depot (fonsinchen)
14 years ago
frosch
37069cb59d
(svn r21744) -Fix: Allow Ctrl+Clicking automatic orders for scrolling to their destination.
14 years ago
frosch
716f4e924e
(svn r21744) -Fix: Allow Ctrl+Clicking automatic orders for scrolling to their destination.
14 years ago
rubidium
cc2c7ae5e6
(svn r21739) -Fix [FS#4388] (r19657): make clearing refit orders work again
14 years ago
rubidium
e2ef4aff46
(svn r21739) -Fix [FS#4388] (r19657): make clearing refit orders work again
14 years ago
frosch
9249278833
(svn r21737) -Fix (r1)[FS#4384-ish]: A loading order was also marked as 'not part of orders' when the order before the current order was deleted.
14 years ago
frosch
29a0dd65a9
(svn r21737) -Fix (r1)[FS#4384-ish]: A loading order was also marked as 'not part of orders' when the order before the current order was deleted.
14 years ago
rubidium
1446bfaac6
(svn r21644) -Change: keep showing "No orders" when the order list is filled with only automatic orders
14 years ago
rubidium
28f16a732f
(svn r21644) -Change: keep showing "No orders" when the order list is filled with only automatic orders
14 years ago
rubidium
4d6841b553
(svn r21642) -Feature: concept of automatic station orders; add stub orders for intermediate stations and remove them when not visiting them anymore. This allows you to see what trains visit a station without actually having to order a vehicle to stop at all stations. Based on patch by fonsinchen
14 years ago
rubidium
64f04c3a74
(svn r21642) -Feature: concept of automatic station orders; add stub orders for intermediate stations and remove them when not visiting them anymore. This allows you to see what trains visit a station without actually having to order a vehicle to stop at all stations. Based on patch by fonsinchen
14 years ago
rubidium
8eccfcdd42
(svn r21603) -Codechange: no need to assign something to a variable and then test it for NULL when you're never using it again
14 years ago
rubidium
e9a595bda0
(svn r21603) -Codechange: no need to assign something to a variable and then test it for NULL when you're never using it again
14 years ago
rubidium
bde1973e7a
(svn r21602) -Codechange: split actual adding/removing of orders to/from a vehicle's order list from the validation of those (user) commands. Based on patch by fonsinchen
14 years ago
rubidium
a38a1e7b0d
(svn r21602) -Codechange: split actual adding/removing of orders to/from a vehicle's order list from the validation of those (user) commands. Based on patch by fonsinchen
14 years ago
terkhen
47c9189002
(svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class.
14 years ago
terkhen
79e2b3153d
(svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class.
14 years ago
rubidium
d5bdeb3589
(svn r21466) -Codechange: make VehicleHasDepotOrders a function of Vehicle.
14 years ago
rubidium
23369337c1
(svn r21466) -Codechange: make VehicleHasDepotOrders a function of Vehicle.
14 years ago
alberth
9f3845227e
(svn r21273) -Codechange: Return values should start at the same line.
14 years ago
alberth
ab50f74d7f
(svn r21273) -Codechange: Return values should start at the same line.
14 years ago
rubidium
75329688e6
(svn r20600) -Fix [FS#4075]: "downscale" a full load order to a load if possible order when removing the order while the vehicle is loading. This to prevent the vehicle from (possibly) staying forever in the station
14 years ago
rubidium
8ce06a09b9
(svn r20600) -Fix [FS#4075]: "downscale" a full load order to a load if possible order when removing the order while the vehicle is loading. This to prevent the vehicle from (possibly) staying forever in the station
14 years ago
rubidium
5067ec50ce
(svn r20580) -Fix [FS#4039]: go via station and go via waypoint behaved differently when a train went back to the same (unordered) station again
14 years ago
rubidium
f3864181b6
(svn r20580) -Fix [FS#4039]: go via station and go via waypoint behaved differently when a train went back to the same (unordered) station again
14 years ago
rubidium
0d018b5840
(svn r20571) -Codechange: free/reserve some bits in the order commands to increase the vehicle pool limit
14 years ago
rubidium
e89a0fb7f9
(svn r20571) -Codechange: free/reserve some bits in the order commands to increase the vehicle pool limit
14 years ago
rubidium
27e45d96a4
(svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands.
14 years ago
rubidium
926594b599
(svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands.
14 years ago
rubidium
e68cf6bd81
(svn r20539) -Codechange: make order backups more self-contained.
14 years ago
rubidium
38ca44594f
(svn r20539) -Codechange: make order backups more self-contained.
14 years ago
rubidium
e5420d89d5
(svn r20498) -Fix [FS#4030]: ignore the non-stop state when comparing one order type to another order type
14 years ago
rubidium
15514baf8b
(svn r20498) -Fix [FS#4030]: ignore the non-stop state when comparing one order type to another order type
14 years ago
rubidium
33c41bbfed
(svn r20441) -Fix [FS#4024]: adding "goto nearest depot and stop" orders in one go was denied. This caused both AI adding those orders and backed up order restoration to fail.
14 years ago
rubidium
cde8a44a11
(svn r20441) -Fix [FS#4024]: adding "goto nearest depot and stop" orders in one go was denied. This caused both AI adding those orders and backed up order restoration to fail.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
rubidium
8c85b4ce3d
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
rubidium
f10c7255f4
(svn r20229) -Fix [FS#3986]: "Service at nearest depot" behaved the same as "Go to nearest depot"
14 years ago
rubidium
8df78e7a7b
(svn r20229) -Fix [FS#3986]: "Service at nearest depot" behaved the same as "Go to nearest depot"
14 years ago
alberth
137e2b64c9
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
frosch
bf721f39af
(svn r19657) -Fix: Add saneness checks for front vehicles.
15 years ago
frosch
2365a4dea0
(svn r19657) -Fix: Add saneness checks for front vehicles.
15 years ago
frosch
ed80045221
(svn r19654) -Codechange: Use Extract<> in more places.
15 years ago
frosch
75d4bc947d
(svn r19654) -Codechange: Use Extract<> in more places.
15 years ago
alberth
72d62fd6fc
(svn r19494) -Codechange: Remove _error_message.
15 years ago
alberth
05d705e077
(svn r19494) -Codechange: Remove _error_message.
15 years ago
alberth
8109a0ad7f
(svn r19483) -Codechange: Code layout fixes, and parentheses reduction.
15 years ago
alberth
f05a8635fd
(svn r19483) -Codechange: Code layout fixes, and parentheses reduction.
15 years ago
yexo
79909cedee
(svn r19463) -Codechange: add helper function to determine if an airport has at least one hangar
15 years ago
yexo
414071d07f
(svn r19463) -Codechange: add helper function to determine if an airport has at least one hangar
15 years ago
yexo
22a27d3b62
(svn r19455) -Codechange: split all airport information in Station to a seperate class
15 years ago
yexo
c4a88ce022
(svn r19455) -Codechange: split all airport information in Station to a seperate class
15 years ago
alberth
d5fe3f96c7
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
15 years ago
alberth
7cc68f493d
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
15 years ago
frosch
b7bfae70a8
(svn r19215) -Codechange: Add Order::GetLocation() to deduplicate code.
15 years ago
frosch
3222ace3e1
(svn r19215) -Codechange: Add Order::GetLocation() to deduplicate code.
15 years ago
frosch
baeeb024ea
(svn r19210) -Fix: GetDestination() is invalid for nearest-depot orders.
15 years ago
frosch
945d2c08e0
(svn r19210) -Fix: GetDestination() is invalid for nearest-depot orders.
15 years ago
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
yexo
84cd40a483
(svn r18807) -Codechange: introduce AirportSpec and move several non-statemachine-related variables to there
15 years ago
yexo
d669801f1d
(svn r18807) -Codechange: introduce AirportSpec and move several non-statemachine-related variables to there
15 years ago
rubidium
3de085a143
(svn r18683) -Fix: it's not an other
15 years ago
rubidium
b2e9b5d612
(svn r18683) -Fix: it's not an other
15 years ago
yexo
cb0cfca653
(svn r18660) -Cleanup: remove useless function
15 years ago
yexo
1520aab5b2
(svn r18660) -Cleanup: remove useless function
15 years ago
rubidium
257a16a3b1
(svn r18615) -Fix: conditional orders were seen as 'valid' and as such aircraft with only conditional orders did not crash
15 years ago
rubidium
277794e26b
(svn r18615) -Fix: conditional orders were seen as 'valid' and as such aircraft with only conditional orders did not crash
15 years ago
smatz
472e6404cb
(svn r18412) -Fix [FS#3350]: don't allow sending ships to rail waypoints and trains to buyos (Hirundo)
15 years ago
smatz
29606c0de6
(svn r18412) -Fix [FS#3350]: don't allow sending ships to rail waypoints and trains to buyos (Hirundo)
15 years ago
rubidium
0fed86a779
(svn r18404) -Codechange: link drive through stops better together
...
-Feature: make penalty for road stop occupancy user configurable
-Fix [FS#1944]: road vehicles would not pick an empty drive through stop. Now they will *if* the penalty for driving around is less than the occupancy penalty
-Fix [FS#1495]: long (articulated) road vehicles could block loading of others when the following road vehicle already got 'permission' to go to the next bay even when it could not reach it
-Change: improve the throughput of the drive through road stops by letting them stop closer together
15 years ago
rubidium
fac2f8ce1a
(svn r18404) -Codechange: link drive through stops better together
...
-Feature: make penalty for road stop occupancy user configurable
-Fix [FS#1944]: road vehicles would not pick an empty drive through stop. Now they will *if* the penalty for driving around is less than the occupancy penalty
-Fix [FS#1495]: long (articulated) road vehicles could block loading of others when the following road vehicle already got 'permission' to go to the next bay even when it could not reach it
-Change: improve the throughput of the drive through road stops by letting them stop closer together
15 years ago
rubidium
6278f0b8a9
(svn r18385) -Cleanup: remove the now unneeded multistop slot management code
15 years ago
rubidium
0ef0e13795
(svn r18385) -Cleanup: remove the now unneeded multistop slot management code
15 years ago
frosch
992bc6c345
(svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff.
15 years ago
frosch
59f9163e37
(svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff.
15 years ago
frosch
a3bd5f5234
(svn r18380) -Fix (r9301): One could not share orders between buses carrying different cargos.
15 years ago
frosch
2265202d77
(svn r18380) -Fix (r9301): One could not share orders between buses carrying different cargos.
15 years ago
rubidium
2e506b04aa
(svn r18204) -Codechange: introduce a type for Ticks and use it; furthermore document some related variables/functions
15 years ago
rubidium
37056b564c
(svn r18204) -Codechange: introduce a type for Ticks and use it; furthermore document some related variables/functions
15 years ago
frosch
3cb949a17d
(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h
15 years ago
frosch
79627b4f89
(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
ed8788d581
(svn r17682) -Codechange: remove erroneous space before some commas
15 years ago
rubidium
e9624fe0cc
(svn r17682) -Codechange: remove erroneous space before some commas
15 years ago
rubidium
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
06e490fadc
(svn r17567) -Fix: some doxygen warnings
15 years ago
rubidium
04d5b67eb6
(svn r17567) -Fix: some doxygen warnings
15 years ago
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
rubidium
bedc973191
(svn r17384) -Fix [FS#2859]: remove all order window state changes out of the drawing routine and call them immediately when changes happen instead of on the next OnPaint. This prevents pressing buttons when they should've been already disabled.
15 years ago
rubidium
a8d768cf6e
(svn r17384) -Fix [FS#2859]: remove all order window state changes out of the drawing routine and call them immediately when changes happen instead of on the next OnPaint. This prevents pressing buttons when they should've been already disabled.
15 years ago
smatz
a0d0206f2d
(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents
15 years ago
smatz
100ae8efcc
(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
d64bdb138c
(svn r17168) -Codechange: apply coding style to if and while statements
15 years ago
smatz
c5533ae470
(svn r17168) -Codechange: apply coding style to if and while statements
15 years ago
rubidium
5bb7b8ad35
(svn r17062) -Change: unify the naming of some 125 strings
15 years ago
rubidium
4b2592dbc0
(svn r17062) -Change: unify the naming of some 125 strings
15 years ago
rubidium
edf7b21e18
(svn r16976) -Codechange: remove WaypointID and MAX_LENGTH constants in favour of their Station variants
15 years ago
rubidium
e473e69ba4
(svn r16976) -Codechange: remove WaypointID and MAX_LENGTH constants in favour of their Station variants
15 years ago
rubidium
58563eafa7
(svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h.
15 years ago
rubidium
7440ec7a73
(svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h.
15 years ago
rubidium
eacc809fa4
(svn r16940) -Codechange: make the pathfinders behave the same when finding waypoints or stations, i.e. don't force exactly one destination tile for a waypoint
15 years ago
rubidium
c3d2c47faa
(svn r16940) -Codechange: make the pathfinders behave the same when finding waypoints or stations, i.e. don't force exactly one destination tile for a waypoint
15 years ago
rubidium
6435dc89fe
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
15 years ago
rubidium
cb0409fe52
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
15 years ago
rubidium
100cb17fa8
(svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types.
...
-Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
15 years ago
rubidium
68ead6b84f
(svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types.
...
-Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
15 years ago
rubidium
5e3326d4d7
(svn r16802) -Fix [FS#3031]: service orders didn't behave like conditional orders; if a train doesn't need service it didn't completely skip the order, it would first send the vehicle towards the depot and would then realise it doesn't need to go there making it possible that the vehicle leaves that station on the wrong side.
15 years ago
rubidium
2547ba9517
(svn r16802) -Fix [FS#3031]: service orders didn't behave like conditional orders; if a train doesn't need service it didn't completely skip the order, it would first send the vehicle towards the depot and would then realise it doesn't need to go there making it possible that the vehicle leaves that station on the wrong side.
15 years ago
rubidium
026f3c8feb
(svn r16785) -Codechange: make ships going to buoys use OT_GOTO_WAYPOINT too
16 years ago
rubidium
3b8d0621a2
(svn r16785) -Codechange: make ships going to buoys use OT_GOTO_WAYPOINT too
16 years ago
smatz
f6a4d61cca
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
16 years ago
smatz
8343340acb
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
16 years ago
smatz
61a42f42c1
(svn r16640) -Codechange: move roadstop stuff to separate files
16 years ago
smatz
0045096403
(svn r16640) -Codechange: move roadstop stuff to separate files
16 years ago
yexo
3531315322
(svn r16613) -Fix [NewGRF]: some of the var action 2 80+ variables contained wrong results due to OpenTTD codechanges
16 years ago
yexo
548a605263
(svn r16613) -Fix [NewGRF]: some of the var action 2 80+ variables contained wrong results due to OpenTTD codechanges
16 years ago
smatz
af85994f7f
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
16 years ago
smatz
0c10006907
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
16 years ago
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
alberth
bab70a823d
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
smatz
7cd7be48c3
(svn r16475) -Codechange: move code invalidating Vehicle::last_station_visited to more logical place
16 years ago
smatz
ab5a51d462
(svn r16475) -Codechange: move code invalidating Vehicle::last_station_visited to more logical place
16 years ago
rubidium
9f9c1cd29c
(svn r16457) -Fix [FS#2925]: skipping a 'nearest depot order' because none could be found could cause multiple orders to get skipped
16 years ago
rubidium
62a2dff61e
(svn r16457) -Fix [FS#2925]: skipping a 'nearest depot order' because none could be found could cause multiple orders to get skipped
16 years ago
yexo
f044ad6f80
(svn r16439) -Change: Make the default vehicle servicing settings company-based settings, so in a multiplayer game everyone can change them.
16 years ago
yexo
0d56cfabfa
(svn r16439) -Change: Make the default vehicle servicing settings company-based settings, so in a multiplayer game everyone can change them.
16 years ago
frosch
eeb3f75cfe
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
16 years ago
frosch
a4557c7da4
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
16 years ago
rubidium
6cfc38b97c
(svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehicle
16 years ago
rubidium
86710c5185
(svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehicle
16 years ago
rubidium
1ceb349779
(svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate
16 years ago
rubidium
d37b840cf3
(svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate
16 years ago
rubidium
4ae19b7451
(svn r16388) -Codechange: move u.air to Aircraft
16 years ago
rubidium
c882248348
(svn r16388) -Codechange: move u.air to Aircraft
16 years ago
rubidium
1e853b1226
(svn r16387) -Codechange: use Aircraft instead of Vehicle where appropriate
16 years ago
rubidium
ada3067960
(svn r16387) -Codechange: use Aircraft instead of Vehicle where appropriate
16 years ago
smatz
50624d5c0f
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
smatz
62a7948af0
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
smatz
512db5248e
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
smatz
8808f3beea
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
frosch
8bb92c110d
(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate some code.
16 years ago
frosch
677ea100b3
(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate some code.
16 years ago
frosch
ac1b753f9a
(svn r16199) -Codechange: Pass OrderNonStopFlags also to MakeGoToDepotOrder().
...
-Fix: 'Go non-stop to nearest depot'-orders did not work wrt. the 'non-stop' part.
-Fix: Adding 'Go to nearest depot'-orders did not respect the default setting for 'non-stop'.
16 years ago
frosch
d518b3d0ac
(svn r16199) -Codechange: Pass OrderNonStopFlags also to MakeGoToDepotOrder().
...
-Fix: 'Go non-stop to nearest depot'-orders did not work wrt. the 'non-stop' part.
-Fix: Adding 'Go to nearest depot'-orders did not respect the default setting for 'non-stop'.
16 years ago
rubidium
5c5b357043
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
yexo
cf6adbfe4f
(svn r16107) -Add [NoAI]: AIOF_STOP_IN_DEPOT to the orderflags in AIOrder to allow stop-in-depot orders
16 years ago
yexo
61d883e7e5
(svn r16107) -Add [NoAI]: AIOF_STOP_IN_DEPOT to the orderflags in AIOrder to allow stop-in-depot orders
16 years ago
frosch
09ad9d5604
(svn r16063) -Fix (r13752): MOF_COND_DESTINATION was not accepted by CmdModifyOrder(). (only used by AI)
16 years ago
frosch
aecddf5cbe
(svn r16063) -Fix (r13752): MOF_COND_DESTINATION was not accepted by CmdModifyOrder(). (only used by AI)
16 years ago
rubidium
4c707c7414
(svn r16037) -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station.
16 years ago
rubidium
5790293af6
(svn r16037) -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station.
16 years ago
rubidium
5c8cf85613
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
rubidium
d846eef0b6
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
rubidium
20cb3a581c
(svn r15354) -Fix (r14803): first shared of a vehicle could be NULL making it impossible to (share-)clone the vehicle.
16 years ago
rubidium
b7c7a1f701
(svn r15354) -Fix (r14803): first shared of a vehicle could be NULL making it impossible to (share-)clone the vehicle.
16 years ago
Yexo
9827e5cb57
(svn r15333) -Fix: AIs weren't restricted to a maximum length for ship orders.
16 years ago
Yexo
3cf7255c4f
(svn r15333) -Fix: AIs weren't restricted to a maximum length for ship orders.
16 years ago
frosch
61a893d6fd
(svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions.
16 years ago
frosch
de9a6fc90b
(svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions.
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
ca45774160
(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
...
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
16 years ago
smatz
e00cf92f47
(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
...
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
16 years ago
rubidium
c305a35e45
(svn r14990) -Codechange: handle articulated RVs and trams more strictly in GetStationTileForVehicle and CanVehicleUseStation (based on idea by Swallow)
16 years ago
rubidium
6c880d1c20
(svn r14990) -Codechange: handle articulated RVs and trams more strictly in GetStationTileForVehicle and CanVehicleUseStation (based on idea by Swallow)
16 years ago
rubidium
905631d9df
(svn r14954) -Fix [FS#1890]: sharing/cloning/inserting of orders that the/a vehicle (in the shared list) can't go to (wrong station type etc)
16 years ago
rubidium
7878405a12
(svn r14954) -Fix [FS#1890]: sharing/cloning/inserting of orders that the/a vehicle (in the shared list) can't go to (wrong station type etc)
16 years ago
rubidium
0543f50181
(svn r14952) -Codechange: unify the "can vehicle go to station" tests
16 years ago
rubidium
3d6c09b38d
(svn r14952) -Codechange: unify the "can vehicle go to station" tests
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
16 years ago
glx
c61674221c
(svn r14840) -Cleanup: remove duplicate includes
16 years ago
glx
c7959ce2a9
(svn r14840) -Cleanup: remove duplicate includes
16 years ago
smatz
b1f7ef7076
(svn r14831) -Codechange: use {VEHICLE} instead of Train/Ship/Road veh/Aircraft/{STRING} {COMMA} in lang files (part by Swallow)
16 years ago
smatz
9a09e5c4a0
(svn r14831) -Codechange: use {VEHICLE} instead of Train/Ship/Road veh/Aircraft/{STRING} {COMMA} in lang files (part by Swallow)
16 years ago
rubidium
8252bc59e3
(svn r14830) -Fix [FS#2495]: overflow of number of orders per vehicle (based on patch by Swallow)
16 years ago
rubidium
e557c88667
(svn r14830) -Fix [FS#2495]: overflow of number of orders per vehicle (based on patch by Swallow)
16 years ago
smatz
91233ea596
(svn r14828) -Codechange: move most of save/load-specific code to separate files
16 years ago
smatz
7368c740a6
(svn r14828) -Codechange: move most of save/load-specific code to separate files
16 years ago
rubidium
3ac0875cf6
(svn r14813) -Codechange: use uint instead of 'just' unsigned.
16 years ago
rubidium
11c25a72fa
(svn r14813) -Codechange: use uint instead of 'just' unsigned.
16 years ago
rubidium
f316796629
(svn r14803) -Codechange: move order list management into it's own class and remove the order count from the savegame as we can easily count that (PhilSophus)
16 years ago
rubidium
0d54db5f9f
(svn r14803) -Codechange: move order list management into it's own class and remove the order count from the savegame as we can easily count that (PhilSophus)
16 years ago
rubidium
abd3b8e0d7
(svn r14801) -Codechange: don't reference Vehicle::num_orders directly but through a method GetNumOrders() (PhilSophus)
16 years ago
rubidium
d428da5a35
(svn r14801) -Codechange: don't reference Vehicle::num_orders directly but through a method GetNumOrders() (PhilSophus)
16 years ago
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
smatz
c88a6199a7
(svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo)
16 years ago
smatz
419f6e099f
(svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo)
16 years ago
rubidium
965d0428bd
(svn r14616) -Fix [FS#2424]: a nearest depot order should be "equal" to the resolved nearest depot order; otherwise we keep resolving the nearest depot order every tick.
16 years ago
rubidium
f28992719d
(svn r14616) -Fix [FS#2424]: a nearest depot order should be "equal" to the resolved nearest depot order; otherwise we keep resolving the nearest depot order every tick.
16 years ago
rubidium
155a2ca1f4
(svn r14601) -Fix: the nearest depot and stop in depot orders didn't work together (the vehicle didn't stop).
16 years ago
rubidium
2209c6a344
(svn r14601) -Fix: the nearest depot and stop in depot orders didn't work together (the vehicle didn't stop).
16 years ago
smatz
09e63d5498
(svn r14577) -Fix [FS#2403]: vehicle didn't respect its 'refit in nearest depot' order (Swallow)
16 years ago
smatz
f28172c5f4
(svn r14577) -Fix [FS#2403]: vehicle didn't respect its 'refit in nearest depot' order (Swallow)
16 years ago
rubidium
c1ed1866a4
(svn r14547) -Fix: order pool seemed to look full when it was not as it only checked whether it was possible to allocate a new block of pool items instead of checking for free pool items.
16 years ago
rubidium
ffe155bb2a
(svn r14547) -Fix: order pool seemed to look full when it was not as it only checked whether it was possible to allocate a new block of pool items instead of checking for free pool items.
16 years ago
rubidium
4694b10706
(svn r14524) -Add: stop-in-depot as part of orders (PhilSophus)
16 years ago
rubidium
42df5cbc03
(svn r14524) -Add: stop-in-depot as part of orders (PhilSophus)
16 years ago