summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
AgeCommit message (Collapse)Author
2009-05-09(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate ↵frosch
some code.
2009-04-21(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had ↵rubidium
this ID' from 'some' strings and replace the string name with something more sensible.
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-03-13(svn r15701) -Fix [FS#2595]: Blame NewGRFs returning inconsistent ↵frosch
information in purchase-list/after building before users have a chance to blame OpenTTD for incorrectly autorenewing/-replacing.
2009-03-11(svn r15677) -Fix [FS#2546]: vehicle images would be determined during the ↵rubidium
process of moving the vehicle which means that only the (orientation) data for the vehicles in front of it is valid. Now the data for the vehicles behind the vehicle are valid too.
2009-03-11(svn r15676) -Codechange: remove the need for BeginVehicleMove and merge ↵rubidium
VehiclePositionChanged and EndVehicleMove.
2009-03-11(svn r15671) -Codechange: bit of coding style/clarification.rubidium
2009-03-09(svn r15654) -Fix: Only ever call any vehicle callbacks after the whole ↵frosch
articulated engine has been built. (except 0x16)
2009-03-07(svn r15635) -Fix [FS#2707]: don't allow more than 64 road vehicles to ↵rubidium
reserve a slot at a single road stop. 255 + 1 gives trouble, but 64 is even more than the roadstop would be able to handle within the slot timeout time.
2009-03-01(svn r15596) -Change: road vehicles can stop at stops when they own the ↵rubidium
stop, not when they own the road/tram track.
2009-02-21(svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, ↵frosch
which cannot accept CT_INVALID. -Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them. -Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection. -Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'. Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects. Note: It is intentional that you cannot control refittability by CB 36.
2009-02-21(svn r15540) -Fix: Testing of 'only_this' in CmdRefitRoadVeh() could be ↵frosch
skipped by 'continue'.
2009-02-20(svn r15534) -Codechange: Rename some variables.frosch
2009-02-09(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.rubidium
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-02-06(svn r15375) -Fix [FS#2605]: a tram circling around in a depot did never ↵rubidium
actually 'enter' the depot.
2009-02-06(svn r15374) -Codechange: remove a magic constant.rubidium
2009-02-05(svn r15358) -Add [NoAI]: AIEventVehicleCrashed::GetCrashReason()frosch
2009-02-03(svn r15326) -Fix: Old-ai-ishm when refitting vehicles.frosch
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-27(svn r15286) -Fix: Refitting did not invalidate vehicle-colour-maps of ↵frosch
road-vehicles, ships and aircraft, as well vehicle-length of road-vehicles.
2009-01-25(svn r15263) -Codechange: added Engine::GetCost() to remove some code ↵glx
duplication.
2009-01-22(svn r15210) -Fix: Vehicle::GetRunningCost() was wrong for ships and aircraftglx
2009-01-13(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEARsmatz
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
2009-01-12(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to ↵truebrain
see. NoAI is an API (a framework) to build your own AIs in. See: http://wiki.openttd.org/wiki/index.php/AI:Main_Page With many thanks to: - glx and Rubidium for their syncing, feedback and hard work - Yexo for his feedback, patches, and AIs which tested the system very deep - Morloth for his feedback and patches - TJIP for hosting a challenge which kept NoAI on track - All AI authors for testing our AI API, and all other people who helped in one way or another -Remove: all old AIs and their cheats/hacks
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2009-01-07(svn r14903) -Fix: First create all articulated parts of roadvehicles, then ↵frosch
call callback 36 capacity, also call it for all articulated parts.
2009-01-06(svn r14869) -Feature: Allow road vehicles to move multiple steps in a tick ↵peter1138
(code based on train movement code) and add support for RV prop 15. This gives RVs a maximum speed of 318mph instead 79mph. This only implements higher speeds, not 'realistic acceleration'.
2009-01-04(svn r14835) -Change: apply the 'warn if train's income is negative' setting ↵smatz
to other vehicle types, too
2008-12-28(svn r14754) -Codechange: get rid of _cmd_text and just pass it as ↵rubidium
(optional) parameter.
2008-12-26(svn r14748) -Codechange: unduplicate window updating when deleting vehicles.rubidium
2008-11-13(svn r14578) -Fix (r2389, r10811)[FS#Vikthor]: Allow capacity callbacks (15, ↵frosch
36) to return zero capacity.
2008-11-07(svn r14566) -Fix [FS#2397]: RV's go via order would reserve a slot at the ↵rubidium
'via' station which it never uses, which makes it unlikely that it reserves a slot for the next station and that makes queueing fail (Aali)
2008-10-28(svn r14545) -Fix [FS#2386]: road vehicles sometimes never got their "slots" ↵rubidium
deallocated causing RVs not going to depot for service.
2008-10-10(svn r14458) -Fix [FS#2341](r14368): crash when there was a tram dead end ↵smatz
after a station/tunnel/bridge (frosch123 and Rubidium)
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-09-21(svn r14368) -Fix [FS#1852]: trams jumping when reversing on a single ↵rubidium
trambit (like caused during road construction reworks) or when (manually) reversing in a corner.
2008-09-13(svn r14307) -Fix: when deleting a station, remove news items regarding itsmatz
2008-09-13(svn r14306) -Codechange: unify the code to draw the vehicle list.rubidium
-Fix [FS#2292]: inconsistency between drawn vehicle lists in the vehicle list and group windows.
2008-09-07(svn r14258) -Codechange: rework the way to query the vehicle hash to make ↵rubidium
sure it always results in the same irregardless of the order of the hash-linked-list. -Fix: desync in PBS reservation following, vehicle flooding and road vehicle overtake/follow code.
2008-08-17(svn r14090) -Fix: the vehicle window of articulated road vehicles would ↵rubidium
show the clone/refit button when the vehicle was not completely stopped in the depot.
2008-08-15(svn r14078) -Codechange: Rename *VehicleInfo::base_cost to cost_factor, ↵peter1138
indicating what it actually is.
2008-08-15(svn r14076) -Codechange: Merge the four start/stop commands into a single ↵frosch
CMD_START_STOP_VEHICLE.
2008-08-01(svn r13912) -Codechange: remove some casts by returning the proper type ↵rubidium
instead of void*.
2008-07-09(svn r13691) -Codechange: make it easier to determine whether a command is ↵smatz
ran in the context of autoreplace or not
2008-06-30(svn r13664) -Fix [FS#2117]: bus/truck forgetting go-to-depot order when ↵rubidium
entering a non-drivethrough road stop.
2008-06-27(svn r13647) -Codechange: replace MAX_UVALUE() for std types with the ↵skidd13
equivalent constant
2008-06-19(svn r13581) -Fix [FS#2040]: RVs continueing onto next DT station when they ↵rubidium
are build adjacent to them.
2008-06-11(svn r13480) -Fix [FS#2050]: RVs stoppping at drive through stations of ↵rubidium
other companies.