summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
AgeCommit message (Collapse)Author
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-07-24(svn r20211) -Codechange: Indented code should have curly braces around it.alberth
2010-07-12(svn r20133) -Revert (r20130): Vehicles could deadlock themself in roadstops.frosch
2010-07-11(svn r20130) -Fix [FS#3935]: Standard roadstops can also be left via manual ↵frosch
depot orders.
2010-07-04(svn r20079) -Codechange [FS#3922]: Add helper functions to deal with the ↵frosch
192-256-magic of vehicle movement.
2010-07-02(svn r20053) -Fix [FS#3919] (r20034): crashing road vehicles crashed OpenTTD ↵rubidium
with slower/longer trains
2010-06-29(svn r20034) -Fix [FS#3896] (r14869): road vehicles could get crashed twice ↵rubidium
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-11(svn r19961) -Codechange: Unify "vehicle is destroyed" errors.terkhen
2010-06-07(svn r19945) -Fix (r19755-ish): Allow turning of roadvehicles while waiting ↵frosch
in a queue (again).
2010-06-05(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into ↵frosch
DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
2010-05-31(svn r19914) -Codechange: Wrap a helper class around temporary assignments ↵frosch
of _current_company to ensure proper restoration.
2010-05-03(svn r19756) -Codechange: move UpdateViewport() from Vehicle to ↵smatz
SpecializedVehicle in order to improve performance
2010-05-03(svn r19755) -Fix: Blocked roadvehicles should first check whether they are ↵frosch
still blocked before accelerating again, instead of continuous starting/stopping.
2010-04-13(svn r19621) -Codechange: Remove direct usage of magic 'p1's in build ↵frosch
vehicle commands.
2010-04-01(svn r19533) -Fix [FS#3720]: Vehicle details window did not resize correctly ↵terkhen
after refitting a road vehicle to a longer variant.
2010-03-20(svn r19494) -Codechange: Remove _error_message.alberth
2010-03-13(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.alberth
2010-03-06(svn r19345) -Feature: Realistic acceleration for road vehicles.terkhen
2010-03-06(svn r19344) -Codechange: RoadVehicle uses UpdateInclination instead of its ↵terkhen
own function.
2010-02-10(svn r19091) -Cleanup: remove some unneeded zeroingrubidium
2010-02-05(svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() ↵smatz
instead of CountBits() where possible
2010-01-21(svn r18872) -Codechange: introduce PaletteID and use itrubidium
2010-01-18(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) ↵rubidium
wrapper functions
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-12-20(svn r18574) -Fix [FS#3392] (r18481): manually sending trains and RVs to ↵rubidium
depots didn't quite work
2009-12-20(svn r18561) -Fix [FS#3390]: Do try to overtake a vehicle in a station as ↵rubidium
overtaking in a station is not allowed
2009-12-18(svn r18532) -Codechange/Fix (r18404): don't leave the road stop between ↵rubidium
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(svn r18531) -Fix [FS#3384] (r18404): for articulated road vehicles only the ↵rubidium
first part was accounted for, so for extremely short fronts and lots after it the spreading did not work as it should.
2009-12-13(svn r18481) -Codechange: unify the curve pathfinder penalty defaults; 0.01 ↵rubidium
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-08(svn r18428) -Fix: if lots of road vehicles are leaving a depot and the ↵rubidium
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-04(svn r18405) -Fix (r18405): RVs didn't like to stop when the 'next' drive ↵rubidium
through station tile didn't have a compatible road type
2009-12-04(svn r18404) -Codechange: link drive through stops better togetherrubidium
-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(svn r18402) -Codechange: unify/centralise the code for crashing vehiclesrubidium
2009-12-02(svn r18388) -Codechange: move entering/leaving of road stops to functions ↵rubidium
of RoadStop
2009-12-02(svn r18385) -Cleanup: remove the now unneeded multistop slot management coderubidium
2009-12-02(svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff.frosch
2009-12-02(svn r18373) -Codechange: unify some road pathfinder functionsrubidium
2009-12-01(svn r18367) -Codechange: unify the ship pathfinder 'calls'rubidium
2009-12-01(svn r18364) -Codechange: move the pathfinders and their related files into ↵rubidium
a separate directory
2009-12-01(svn r18362) -Cleanup: remove OPF for RVs and NTP to clean up lots of code ↵rubidium
and simplify some things for the future
2009-11-24(svn r18270) -Codechange: split the code for finding a road stop to stop at ↵rubidium
into a seperate function
2009-11-24(svn r18268) -Feature: [NewGRF] Make price base multipliers related to ↵frosch
vehicles only apply to the GRF locally, if it defines engines of that type itself.
2009-11-24(svn r18266) -Codechange: Add a function to compute prices from price base ↵frosch
and cost factor and use it consistently for vehicle purchase, running cost, and refit cost.
2009-11-16(svn r18123) -Codechange: try our best to keep the vehicles within the build ↵rubidium
vehicle list/autoreplace lists instead of overflowing.
2009-11-16(svn r18121) -Codechange: pass the maximum left/right location to the ↵rubidium
Draw*Engine functions
2009-11-08(svn r18011) -Feature(ette): [NewGRF] CB 36 for roadvehicle property 09 ↵frosch
'running cost factor'.
2009-11-05(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up ↵frosch
including of newgrf_cargo.h
2009-10-28(svn r17899) -Codechange: Deduplicate code for refitting vehicles.frosch
2009-10-28(svn r17897) -Fix [FS#3255]: CB15 and CB36 (capacity) were not always called ↵frosch
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-27(svn r17894) -Fix: Invalidate cache of vehicle vars 40-43 after testruns of ↵frosch
certain commands, that change them temporarily.