frosch
acc3c75951
(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code.
2011-11-01 00:23:41 +00:00
frosch
e57ba5d0ae
(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.
2011-11-01 00:21:08 +00:00
frosch
72cd855978
(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.
2011-11-01 00:21:08 +00:00
frosch
e801aebbfc
(svn r22816) -Feature(ette): [NewGRF] Also age wagons and articulated parts.
2011-08-22 21:33:58 +00:00
frosch
28117b3eb0
(svn r22816) -Feature(ette): [NewGRF] Also age wagons and articulated parts.
2011-08-22 21:33:58 +00:00
michi_cc
d25840978c
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
2011-08-03 20:55:08 +00:00
michi_cc
08b7981f37
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
2011-08-03 20:55:08 +00:00
planetmaker
7aa57e4acd
(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added
2011-05-18 12:19:58 +00:00
planetmaker
43c8cd1d5e
(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added
2011-05-18 12:19:58 +00:00
frosch
1ef4e543e7
(svn r22329) -Change: When the current orders are interrupted for non-ordered service, disable modifications to automatic orders until the next real order is completed. (train part already slipped by in r22328)
2011-04-16 16:56:24 +00:00
frosch
709f0e4f83
(svn r22329) -Change: When the current orders are interrupted for non-ordered service, disable modifications to automatic orders until the next real order is completed. (train part already slipped by in r22328)
2011-04-16 16:56:24 +00:00
frosch
60b19a1344
(svn r22309) -Fix: Make road vehicles, ships and aircraft skip orders if they are leaving a depot and heading to the same one again; just like trains since r16322.
2011-04-10 10:47:21 +00:00
frosch
5bf90860f8
(svn r22309) -Fix: Make road vehicles, ships and aircraft skip orders if they are leaving a depot and heading to the same one again; just like trains since r16322.
2011-04-10 10:47:21 +00:00
rubidium
5629248736
(svn r22205) -Codechange: replace magic number with constant
2011-03-05 21:52:45 +00:00
rubidium
e34c42de32
(svn r22205) -Codechange: replace magic number with constant
2011-03-05 21:52:45 +00:00
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...
2011-02-07 22:49:38 +00:00
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...
2011-02-07 22:49:38 +00:00
alberth
fe71cbfc8b
(svn r21976) -Doc: Document several crash handling functions.
2011-02-05 16:20:55 +00:00
alberth
b992a93996
(svn r21976) -Doc: Document several crash handling functions.
2011-02-05 16:20:55 +00:00
smatz
97abc18ffc
(svn r21948) -Fix: road vehicle was moved under the bridge when it was destroyed by an UFO while on a bridge
2011-02-02 22:40:04 +00:00
smatz
a4bf3be864
(svn r21948) -Fix: road vehicle was moved under the bridge when it was destroyed by an UFO while on a bridge
2011-02-02 22:40:04 +00:00
rubidium
b79330a815
(svn r21946) -Fix [FS#4447]: assertion/funny behaviour when a road vehicle reverses while overtaking, so abort the overtake attempt when reversing the road vehicle
2011-02-02 22:13:13 +00:00
rubidium
547421496e
(svn r21946) -Fix [FS#4447]: assertion/funny behaviour when a road vehicle reverses while overtaking, so abort the overtake attempt when reversing the road vehicle
2011-02-02 22:13:13 +00:00
rubidium
7d7c82d9cc
(svn r21945) -Codechange: simplify setting the overtaking counter and remove the magic from its numbers
2011-02-02 22:06:14 +00:00
rubidium
bbe94dc497
(svn r21945) -Codechange: simplify setting the overtaking counter and remove the magic from its numbers
2011-02-02 22:06:14 +00:00
rubidium
ca487f998b
(svn r21943) -Codechange: document and unmagicify some bits of road vehicle overtaking
2011-02-02 21:56:56 +00:00
rubidium
8118f74575
(svn r21943) -Codechange: document and unmagicify some bits of road vehicle overtaking
2011-02-02 21:56:56 +00:00
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
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
alberth
5ef4317dd9
(svn r21925) -Doc: Doxygen additions and markup corrections to vehicle-related functions.
2011-01-29 21:37:11 +00:00
alberth
eea2f90da7
(svn r21925) -Doc: Doxygen additions and markup corrections to vehicle-related functions.
2011-01-29 21:37:11 +00:00
rubidium
2f8fb298a8
(svn r21915) -Codechange: rename RoadVehicleAccelerate to RoadVehicle::UpdateSpeed (to match the naming used by Trains), and make use of the algorithm implemented in GroundVehicle
2011-01-26 17:35:03 +00:00
rubidium
430fda01dc
(svn r21915) -Codechange: rename RoadVehicleAccelerate to RoadVehicle::UpdateSpeed (to match the naming used by Trains), and make use of the algorithm implemented in GroundVehicle
2011-01-26 17:35:03 +00:00
rubidium
509a01e291
(svn r21913) -Codechange: move bridge speed limiting for road vehicles to the same (logically speaking) place as for trains
2011-01-26 17:33:14 +00:00
rubidium
982de9cf86
(svn r21913) -Codechange: move bridge speed limiting for road vehicles to the same (logically speaking) place as for trains
2011-01-26 17:33:14 +00:00
rubidium
aa1f02c248
(svn r21912) -Codechange: let road vehicles use gcache.last_speed/SetLastSpeed as well
2011-01-26 17:31:44 +00:00
rubidium
4fff63d790
(svn r21912) -Codechange: let road vehicles use gcache.last_speed/SetLastSpeed as well
2011-01-26 17:31:44 +00:00
rubidium
05199a641a
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
smatz
a3ae023fdb
(svn r21879) -Codechange: reset vehicle's GOINGUP/DOWN bits when it crashes
2011-01-21 16:20:55 +00:00
smatz
e308c348f0
(svn r21879) -Codechange: reset vehicle's GOINGUP/DOWN bits when it crashes
2011-01-21 16:20:55 +00:00
terkhen
fdb720cc1a
(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.
2011-01-19 18:44:13 +00:00
terkhen
b5468e7a80
(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.
2011-01-19 18:44:13 +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
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
rubidium
acf7613433
(svn r21510) -Feature [FS#1956]: vehicle lost message for road vehicles
2010-12-13 21:56:25 +00:00
rubidium
6bc002ad74
(svn r21510) -Feature [FS#1956]: vehicle lost message for road vehicles
2010-12-13 21:56:25 +00:00
rubidium
ff16d3a2f8
(svn r21465) -Cleanup [FS#4295]: remove some dead code (fonsinchen)
2010-12-11 13:42:01 +00:00
rubidium
fc70825905
(svn r21465) -Cleanup [FS#4295]: remove some dead code (fonsinchen)
2010-12-11 13:42:01 +00:00
alberth
9f3845227e
(svn r21273) -Codechange: Return values should start at the same line.
2010-11-20 15:44:24 +00:00
alberth
ab50f74d7f
(svn r21273) -Codechange: Return values should start at the same line.
2010-11-20 15:44:24 +00:00
rubidium
d24dbdac7b
(svn r21263) -Fix [FS#3935]: under some circumstances two vehicles could leave a non-drive through road stop at once
2010-11-20 09:09:57 +00:00
rubidium
097880c5e2
(svn r21263) -Fix [FS#3935]: under some circumstances two vehicles could leave a non-drive through road stop at once
2010-11-20 09:09:57 +00:00
rubidium
1c7940255a
(svn r21238) -Feature: [NewGRF] Support callback 0x10 for RVs and ships (Hirundo)
2010-11-18 14:17:55 +00:00
rubidium
61ff042460
(svn r21238) -Feature: [NewGRF] Support callback 0x10 for RVs and ships (Hirundo)
2010-11-18 14:17:55 +00:00
rubidium
06bb553545
(svn r21136) -Fix [FS#4213]: bridge speed limits should apply to all wagons of a vehicle, not just the head of the vehicle
2010-11-10 20:15:48 +00:00
rubidium
d1dfb27699
(svn r21136) -Fix [FS#4213]: bridge speed limits should apply to all wagons of a vehicle, not just the head of the vehicle
2010-11-10 20:15:48 +00:00
terkhen
c7a2d1f883
(svn r21123) -Codechange: Remove max_speed from the Vehicle class.
2010-11-09 17:43:05 +00:00
terkhen
6a38925ca3
(svn r21123) -Codechange: Remove max_speed from the Vehicle class.
2010-11-09 17:43:05 +00:00
terkhen
10d4b2f51f
(svn r21122) -Fix (r21100): Use the cached max speed when checking road vehicle overtaking.
2010-11-09 17:39:41 +00:00
terkhen
e1ff8aeb09
(svn r21122) -Fix (r21100): Use the cached max speed when checking road vehicle overtaking.
2010-11-09 17:39:41 +00:00
terkhen
38d9eed25c
(svn r21100) -Feature [NewGRF]: Add CB36 support for road vehicle property 0x15 (Speed).
2010-11-06 13:11:24 +00:00
terkhen
b65df93121
(svn r21100) -Feature [NewGRF]: Add CB36 support for road vehicle property 0x15 (Speed).
2010-11-06 13:11:24 +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
18e3a3ddfc
(svn r21099) -Codechange: Store road vehicle max speed in the vehicle cache.
2010-11-06 13:05:11 +00:00
alberth
e5b817e99a
(svn r21088) -Doc: Additions/corrections of doxygen comments.
2010-11-05 16:34:22 +00:00
alberth
fa13971337
(svn r21088) -Doc: Additions/corrections of doxygen comments.
2010-11-05 16:34:22 +00:00
smatz
548a3747e9
(svn r20860) -Cleanup: remove some unused functions and variables
2010-10-01 16:42:28 +00:00
smatz
77fe95f552
(svn r20860) -Cleanup: remove some unused functions and variables
2010-10-01 16:42:28 +00:00
rubidium
db3a6485d7
(svn r20768) -Codechange: unify send-to-depot commands
2010-09-08 18:55:58 +00:00
rubidium
9badab6454
(svn r20768) -Codechange: unify send-to-depot commands
2010-09-08 18:55:58 +00:00
rubidium
64f4b0d718
(svn r20645) -Codechange [FS#4086]: unify the code for checking for breakdown handling as well (Hirundo)
2010-08-28 14:14:37 +00:00
rubidium
2fb18e975c
(svn r20645) -Codechange [FS#4086]: unify the code for checking for breakdown handling as well (Hirundo)
2010-08-28 14:14:37 +00:00
rubidium
28d1d32161
(svn r20644) -Codechange [FS#4086]: unify the vehicle breakdown code (Hirundo)
2010-08-28 14:01:50 +00:00
rubidium
702cc96943
(svn r20644) -Codechange [FS#4086]: unify the vehicle breakdown code (Hirundo)
2010-08-28 14:01:50 +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
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
rubidium
982df3e96b
(svn r20536) -Codechange: unify the refitting of vehicles
2010-08-18 00:47:31 +00:00
rubidium
c5a670037b
(svn r20536) -Codechange: unify the refitting of vehicles
2010-08-18 00:47:31 +00:00
rubidium
c57a5b735a
(svn r20532) -Codechange: unify selling of vehicles a bit
2010-08-17 23:55:22 +00:00
rubidium
4780cc50b2
(svn r20532) -Codechange: unify selling of vehicles a bit
2010-08-17 23:55:22 +00:00
rubidium
253080ad64
(svn r20531) -Codechange: unify quite a bit of the vehicle building commands
2010-08-17 23:15:55 +00:00
rubidium
c14853b72e
(svn r20531) -Codechange: unify quite a bit of the vehicle building commands
2010-08-17 23:15:55 +00:00
alberth
a51d34c048
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
2010-08-15 14:06:43 +00:00
alberth
35fec79700
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
2010-08-15 14:06:43 +00:00
rubidium
b5d5a4e159
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
2010-08-10 15:54:53 +00:00
rubidium
29b489a055
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
2010-08-10 15:54:53 +00:00
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
alberth
137e2b64c9
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
frosch
0a01f91f54
(svn r20133) -Revert (r20130): Vehicles could deadlock themself in roadstops.
2010-07-12 19:36:06 +00:00
frosch
dcd605a9a9
(svn r20133) -Revert (r20130): Vehicles could deadlock themself in roadstops.
2010-07-12 19:36:06 +00:00
frosch
8457cafd7e
(svn r20130) -Fix [FS#3935]: Standard roadstops can also be left via manual depot orders.
2010-07-11 20:34:29 +00:00
frosch
f717248990
(svn r20130) -Fix [FS#3935]: Standard roadstops can also be left via manual depot orders.
2010-07-11 20:34:29 +00:00
frosch
35f4b4155e
(svn r20079) -Codechange [FS#3922]: Add helper functions to deal with the 192-256-magic of vehicle movement.
2010-07-04 13:07:47 +00:00
frosch
a7d168b2e5
(svn r20079) -Codechange [FS#3922]: Add helper functions to deal with the 192-256-magic of vehicle movement.
2010-07-04 13:07:47 +00:00
rubidium
0eb8772794
(svn r20053) -Fix [FS#3919] (r20034): crashing road vehicles crashed OpenTTD with slower/longer trains
2010-07-02 19:54:29 +00:00
rubidium
eb19d4b440
(svn r20053) -Fix [FS#3919] (r20034): crashing road vehicles crashed OpenTTD with slower/longer trains
2010-07-02 19:54:29 +00:00
rubidium
1fcfac6d69
(svn r20034) -Fix [FS#3896] (r14869): road vehicles could get crashed twice in a tick
...
In RoadVehicleController at tick N a road vehicle gets a j of slightly less
than adv_speed. In tick N+1 RoadVehCheckTrainCrash is called, then the road
vehicle gets a j of slightly more than adv_speed. This causes a second call
of RoadVehCheckTrainCrash. If in tick N the road vehicle moved onto a level
crossing and a (maglev) entered that tile at the same tick, in tick N+1 the
road vehicle would be crashed twice.
2010-06-29 20:48:34 +00:00
rubidium
b1400ab65e
(svn r20034) -Fix [FS#3896] (r14869): road vehicles could get crashed twice in a tick
...
In RoadVehicleController at tick N a road vehicle gets a j of slightly less
than adv_speed. In tick N+1 RoadVehCheckTrainCrash is called, then the road
vehicle gets a j of slightly more than adv_speed. This causes a second call
of RoadVehCheckTrainCrash. If in tick N the road vehicle moved onto a level
crossing and a (maglev) entered that tile at the same tick, in tick N+1 the
road vehicle would be crashed twice.
2010-06-29 20:48:34 +00:00
terkhen
b3d347f6c9
(svn r19961) -Codechange: Unify "vehicle is destroyed" errors.
2010-06-11 20:20:45 +00:00
terkhen
54403a8251
(svn r19961) -Codechange: Unify "vehicle is destroyed" errors.
2010-06-11 20:20:45 +00:00
frosch
585d259b22
(svn r19945) -Fix (r19755-ish): Allow turning of roadvehicles while waiting in a queue (again).
2010-06-07 20:38:16 +00:00
frosch
6b88c1c5cd
(svn r19945) -Fix (r19755-ish): Allow turning of roadvehicles while waiting in a queue (again).
2010-06-07 20:38:16 +00:00
frosch
a5bea603ea
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
2010-06-05 12:16:12 +00:00
frosch
1d3adb2b66
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
2010-06-05 12:16:12 +00:00
frosch
ee53807e51
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
2010-05-31 20:22:57 +00:00
frosch
9db3cde73a
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
2010-05-31 20:22:57 +00:00
smatz
27949d219d
(svn r19756) -Codechange: move UpdateViewport() from Vehicle to SpecializedVehicle in order to improve performance
2010-05-03 23:36:17 +00:00
smatz
00a52cc475
(svn r19756) -Codechange: move UpdateViewport() from Vehicle to SpecializedVehicle in order to improve performance
2010-05-03 23:36:17 +00:00
frosch
5a0934afff
(svn r19755) -Fix: Blocked roadvehicles should first check whether they are still blocked before accelerating again, instead of continuous starting/stopping.
2010-05-03 19:55:03 +00:00
frosch
fc646a16a4
(svn r19755) -Fix: Blocked roadvehicles should first check whether they are still blocked before accelerating again, instead of continuous starting/stopping.
2010-05-03 19:55:03 +00:00
frosch
0d6a432b4c
(svn r19621) -Codechange: Remove direct usage of magic 'p1's in build vehicle commands.
2010-04-13 19:10:08 +00:00
frosch
1f28e232c3
(svn r19621) -Codechange: Remove direct usage of magic 'p1's in build vehicle commands.
2010-04-13 19:10:08 +00:00
terkhen
d29c756946
(svn r19533) -Fix [FS#3720]: Vehicle details window did not resize correctly after refitting a road vehicle to a longer variant.
2010-04-01 18:30:00 +00:00
terkhen
e1c68f1b2c
(svn r19533) -Fix [FS#3720]: Vehicle details window did not resize correctly after refitting a road vehicle to a longer variant.
2010-04-01 18:30:00 +00:00
alberth
72d62fd6fc
(svn r19494) -Codechange: Remove _error_message.
2010-03-20 17:58:24 +00:00
alberth
05d705e077
(svn r19494) -Codechange: Remove _error_message.
2010-03-20 17:58:24 +00:00
alberth
d5fe3f96c7
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
2010-03-13 17:11:28 +00:00
alberth
7cc68f493d
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
2010-03-13 17:11:28 +00:00
terkhen
e6878d7ba1
(svn r19345) -Feature: Realistic acceleration for road vehicles.
2010-03-06 12:56:57 +00:00
terkhen
c958c2c31f
(svn r19345) -Feature: Realistic acceleration for road vehicles.
2010-03-06 12:56:57 +00:00
terkhen
ac03431a76
(svn r19344) -Codechange: RoadVehicle uses UpdateInclination instead of its own function.
2010-03-06 12:55:56 +00:00
terkhen
e770b3d6bb
(svn r19344) -Codechange: RoadVehicle uses UpdateInclination instead of its own function.
2010-03-06 12:55:56 +00:00
rubidium
b0a1ecf160
(svn r19091) -Cleanup: remove some unneeded zeroing
2010-02-10 21:28:26 +00:00
rubidium
32cdc157ee
(svn r19091) -Cleanup: remove some unneeded zeroing
2010-02-10 21:28:26 +00:00
smatz
6c1ab1a2fa
(svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() instead of CountBits() where possible
2010-02-05 17:05:58 +00:00
smatz
d62d0ac489
(svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() instead of CountBits() where possible
2010-02-05 17:05:58 +00:00
rubidium
7127338414
(svn r18872) -Codechange: introduce PaletteID and use it
2010-01-21 01:38:13 +00:00
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
2010-01-21 01:38:13 +00:00
rubidium
f618acfb7d
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
2010-01-18 22:57:21 +00:00
rubidium
4d93b704d9
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
2010-01-18 22:57:21 +00:00
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
9d5a91ed07
(svn r18574) -Fix [FS#3392] (r18481): manually sending trains and RVs to depots didn't quite work
2009-12-20 16:19:47 +00:00
rubidium
f2785ae24d
(svn r18574) -Fix [FS#3392] (r18481): manually sending trains and RVs to depots didn't quite work
2009-12-20 16:19:47 +00:00
rubidium
99cdb5e8ec
(svn r18561) -Fix [FS#3390]: Do try to overtake a vehicle in a station as overtaking in a station is not allowed
2009-12-20 11:22:36 +00:00
rubidium
4d78112282
(svn r18561) -Fix [FS#3390]: Do try to overtake a vehicle in a station as overtaking in a station is not allowed
2009-12-20 11:22:36 +00:00
rubidium
98be5fcc5c
(svn r18532) -Codechange/Fix (r18404): don't leave the road stop between tiles, just stay on it. This prevents the rare cases where a road vehicle would stop exactly on the border where it could not load
2009-12-18 21:35:55 +00:00
rubidium
21324b69d9
(svn r18532) -Codechange/Fix (r18404): don't leave the road stop between tiles, just stay on it. This prevents the rare cases where a road vehicle would stop exactly on the border where it could not load
2009-12-18 21:35:55 +00:00
rubidium
06f9e26ca4
(svn r18531) -Fix [FS#3384] (r18404): for articulated road vehicles only the first part was accounted for, so for extremely short fronts and lots after it the spreading did not work as it should.
2009-12-18 21:34:06 +00:00
rubidium
6f1982d151
(svn r18531) -Fix [FS#3384] (r18404): for articulated road vehicles only the first part was accounted for, so for extremely short fronts and lots after it the spreading did not work as it should.
2009-12-18 21:34:06 +00:00
rubidium
899b3db66b
(svn r18481) -Codechange: unify the curve pathfinder penalty defaults; 0.01 tile won't make a dent, 3 tiles might be a bit too much
...
-Feature-ish: make maximum pathfinder penalties for finding depots customisable, also increase it slightly to 20 tiles worth of penalties.
2009-12-13 10:48:44 +00:00
rubidium
472e5501fa
(svn r18481) -Codechange: unify the curve pathfinder penalty defaults; 0.01 tile won't make a dent, 3 tiles might be a bit too much
...
-Feature-ish: make maximum pathfinder penalties for finding depots customisable, also increase it slightly to 20 tiles worth of penalties.
2009-12-13 10:48:44 +00:00
rubidium
7da9158f6b
(svn r18428) -Fix: if lots of road vehicles are leaving a depot and the first in the hash linked list is basically the last of the vehicles to leave the depot then due to the 'jam prevention' code all vehicles would fairly quickly increase the blocked counter and drive off all simultaniously
2009-12-08 00:15:15 +00:00
rubidium
1e416f90fa
(svn r18428) -Fix: if lots of road vehicles are leaving a depot and the first in the hash linked list is basically the last of the vehicles to leave the depot then due to the 'jam prevention' code all vehicles would fairly quickly increase the blocked counter and drive off all simultaniously
2009-12-08 00:15:15 +00:00
rubidium
556061ef6b
(svn r18405) -Fix (r18405): RVs didn't like to stop when the 'next' drive through station tile didn't have a compatible road type
2009-12-04 21:01:28 +00:00
rubidium
cbc6653a47
(svn r18405) -Fix (r18405): RVs didn't like to stop when the 'next' drive through station tile didn't have a compatible road type
2009-12-04 21:01:28 +00:00
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
2009-12-04 20:52:19 +00:00
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
2009-12-04 20:52:19 +00:00
rubidium
6600610e47
(svn r18402) -Codechange: unify/centralise the code for crashing vehicles
2009-12-04 20:29:46 +00:00
rubidium
19fa38601d
(svn r18402) -Codechange: unify/centralise the code for crashing vehicles
2009-12-04 20:29:46 +00:00
rubidium
e4dd60d428
(svn r18388) -Codechange: move entering/leaving of road stops to functions of RoadStop
2009-12-02 23:53:15 +00:00
rubidium
aa40d8e3ad
(svn r18388) -Codechange: move entering/leaving of road stops to functions of RoadStop
2009-12-02 23:53:15 +00:00
rubidium
6278f0b8a9
(svn r18385) -Cleanup: remove the now unneeded multistop slot management code
2009-12-02 18:18:56 +00:00
rubidium
0ef0e13795
(svn r18385) -Cleanup: remove the now unneeded multistop slot management code
2009-12-02 18:18:56 +00:00
frosch
992bc6c345
(svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff.
2009-12-02 17:37:02 +00:00
frosch
59f9163e37
(svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff.
2009-12-02 17:37:02 +00:00
rubidium
3eaf87992e
(svn r18373) -Codechange: unify some road pathfinder functions
2009-12-02 10:44:38 +00:00
rubidium
c10e953141
(svn r18373) -Codechange: unify some road pathfinder functions
2009-12-02 10:44:38 +00:00
rubidium
2341c2e283
(svn r18367) -Codechange: unify the ship pathfinder 'calls'
2009-12-01 23:56:04 +00:00
rubidium
76fe20cdcc
(svn r18367) -Codechange: unify the ship pathfinder 'calls'
2009-12-01 23:56:04 +00:00
rubidium
2f3053508d
(svn r18364) -Codechange: move the pathfinders and their related files into a separate directory
2009-12-01 22:45:39 +00:00
rubidium
f52e27c688
(svn r18364) -Codechange: move the pathfinders and their related files into a separate directory
2009-12-01 22:45:39 +00:00
rubidium
cbb87c41d5
(svn r18362) -Cleanup: remove OPF for RVs and NTP to clean up lots of code and simplify some things for the future
2009-12-01 22:18:51 +00:00
rubidium
3a83eab967
(svn r18362) -Cleanup: remove OPF for RVs and NTP to clean up lots of code and simplify some things for the future
2009-12-01 22:18:51 +00:00
rubidium
ff1a4a9028
(svn r18270) -Codechange: split the code for finding a road stop to stop at into a seperate function
2009-11-24 14:19:21 +00:00
rubidium
32926facf9
(svn r18270) -Codechange: split the code for finding a road stop to stop at into a seperate function
2009-11-24 14:19:21 +00:00
frosch
f60a437d36
(svn r18268) -Feature: [NewGRF] Make price base multipliers related to vehicles only apply to the GRF locally, if it defines engines of that type itself.
2009-11-24 13:15:58 +00:00
frosch
d507136e04
(svn r18268) -Feature: [NewGRF] Make price base multipliers related to vehicles only apply to the GRF locally, if it defines engines of that type itself.
2009-11-24 13:15:58 +00:00
frosch
fe65c7f833
(svn r18266) -Codechange: Add a function to compute prices from price base and cost factor and use it consistently for vehicle purchase, running cost, and refit cost.
2009-11-24 13:12:34 +00:00
frosch
912bce0b8c
(svn r18266) -Codechange: Add a function to compute prices from price base and cost factor and use it consistently for vehicle purchase, running cost, and refit cost.
2009-11-24 13:12:34 +00:00
rubidium
d4774a2ce9
(svn r18123) -Codechange: try our best to keep the vehicles within the build vehicle list/autoreplace lists instead of overflowing.
2009-11-16 17:58:46 +00:00
rubidium
bae066ecaf
(svn r18123) -Codechange: try our best to keep the vehicles within the build vehicle list/autoreplace lists instead of overflowing.
2009-11-16 17:58:46 +00:00
rubidium
ddafe77904
(svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions
2009-11-16 17:15:42 +00:00
rubidium
1c5a92ae98
(svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions
2009-11-16 17:15:42 +00:00
frosch
1bd8a982d5
(svn r18011) -Feature(ette): [NewGRF] CB 36 for roadvehicle property 09 'running cost factor'.
2009-11-08 13:02:05 +00:00
frosch
6ca8f6e380
(svn r18011) -Feature(ette): [NewGRF] CB 36 for roadvehicle property 09 'running cost factor'.
2009-11-08 13:02:05 +00:00
frosch
3cb949a17d
(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h
2009-11-05 19:46:17 +00:00
frosch
79627b4f89
(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h
2009-11-05 19:46:17 +00:00
frosch
020c53fc7e
(svn r17899) -Codechange: Deduplicate code for refitting vehicles.
2009-10-28 21:09:37 +00:00
frosch
00aca63b48
(svn r17899) -Codechange: Deduplicate code for refitting vehicles.
2009-10-28 21:09:37 +00:00
frosch
23980e6486
(svn r17897) -Fix [FS#3255]: CB15 and CB36 (capacity) were not always called when they should.
...
-Codechange: Move capacity calculation to a single function for all vehicle types, so the behaviour can be kept consistent easier.
2009-10-28 18:31:16 +00:00
frosch
83894809d0
(svn r17897) -Fix [FS#3255]: CB15 and CB36 (capacity) were not always called when they should.
...
-Codechange: Move capacity calculation to a single function for all vehicle types, so the behaviour can be kept consistent easier.
2009-10-28 18:31:16 +00:00
frosch
61fbba4dc1
(svn r17894) -Fix: Invalidate cache of vehicle vars 40-43 after testruns of certain commands, that change them temporarily.
2009-10-27 20:37:55 +00:00
frosch
334b809644
(svn r17894) -Fix: Invalidate cache of vehicle vars 40-43 after testruns of certain commands, that change them temporarily.
2009-10-27 20:37:55 +00:00
frosch
f6cc2c162b
(svn r17827) -Codechange: Deduplicate some lines of code.
2009-10-20 20:01:56 +00:00
frosch
ffb729ac9e
(svn r17827) -Codechange: Deduplicate some lines of code.
2009-10-20 20:01:56 +00:00
frosch
99d822723d
(svn r17826) -Codechange: GetRoadVehLength() is only used in one file, make it static.
2009-10-20 19:55:09 +00:00
frosch
8df61c0fc0
(svn r17826) -Codechange: GetRoadVehLength() is only used in one file, make it static.
2009-10-20 19:55:09 +00:00
frosch
b25f03a447
(svn r17726) -Cleanup: Remove some unneeded/unused parameters.
2009-10-06 19:30:31 +00:00
frosch
7a8a97e68a
(svn r17726) -Cleanup: Remove some unneeded/unused parameters.
2009-10-06 19:30:31 +00:00
frosch
4cb5a3e8a2
(svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when a Engine * is already present.
2009-10-06 19:17:07 +00:00
frosch
f3aacb8fe3
(svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when a Engine * is already present.
2009-10-06 19:17:07 +00:00
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
frosch
a9717da0d3
(svn r17684) -Fix: tcache.first_engine and rcache.first_engine need to be set before first callback/sprite-resolving. For RV fronts it was missing at all, causing livery selection to fail.
2009-10-03 14:46:48 +00:00
frosch
12a814f487
(svn r17684) -Fix: tcache.first_engine and rcache.first_engine need to be set before first callback/sprite-resolving. For RV fronts it was missing at all, causing livery selection to fail.
2009-10-03 14:46:48 +00:00
frosch
b6156da5e9
(svn r17616) -Codechange [FS#3222]: Enumerize properties used in callback 0x36. Based on Terkhen's work.
2009-09-22 19:28:57 +00:00