summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
2009-04-18(svn r16079) -Fix [FS#2824]: insanely fast trains would not stop in time for ↵rubidium
stations -Fix: insanely fast trains would sometimes 'jump' over waypoints/via stations within a tick, which would cause the order not to be processed causing the train to go in loops until (with luck) it 'hit' the tile
2009-04-12(svn r16048) -Fix/Feature-ish [FS#2740]: don't warn that crashed vehicles ↵rubidium
are getting old; upgrading them is impossible (racetrack)
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-03-14(svn r15711) -Codechange: lots of whitespace cleanup/fixesrubidium
2009-03-13(svn r15704) -Cleanup: remove further includes from recently split filessmatz
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-13(svn r15699) -Codechange: split Cmd* from vehicle.cpp to vehicle_cmd.cpp.rubidium
2009-03-12(svn r15681) -Cleanup: remove unneeded forward declaration.rubidium
2009-03-11(svn r15676) -Codechange: remove the need for BeginVehicleMove and merge ↵rubidium
VehiclePositionChanged and EndVehicleMove.
2009-03-11(svn r15672) -Codechange: (left,right,top,bottom)_coord -> ↵rubidium
coord.(left,right,top,bottom), i.e. use Rect.
2009-03-09(svn r15652) -Fix [FS#2706]: new (this) is seldom a good idea as destructors ↵michi_cc
of member variables aren't run causing memory leaks.
2009-03-05(svn r15624) -Fix (r15621): warning about comparing signed and unsigned ↵smatz
integer types
2009-03-05(svn r15622) -Codechange: Duplication.peter1138
2009-03-05(svn r15621) -Feature: When cloning a vehicle with a custom name, add and/or ↵peter1138
increment a number at the end of name and assign it to the new vehicle (for emma)
2009-02-24(svn r15569) -Codechange: replace MallocT + memset( 0 ) calls by CallocTsmatz
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-18(svn r15517) -Fix [FS#2642](r6455): Wagonoverrides and articulated engine ↵frosch
parts use the colour scheme of the engine, but not its recolour callback, nor its 2CC flag. Same applies to roadvehicles.
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-04(svn r15336) -Fix: do not use _current_company in the GUI as there are no ↵rubidium
guarantees that _current_company is the same as _local_company.
2009-02-02(svn r15318) -Fix [FS#2594](r10288): don't warn about non-primary engines ↵smatz
getting old
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
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-11(svn r14990) -Codechange: handle articulated RVs and trams more strictly in ↵rubidium
GetStationTileForVehicle and CanVehicleUseStation (based on idea by Swallow)
2009-01-10(svn r14958) -Codechange [FS#1923]: when checking for unique names, compare ↵smatz
only with manually set names There are situations that aren't solvable (because of different language files), so if the user really wants to have duplicated name, allow him to do so. It solves desyncs between server and clients using different languages. It behaves the same in SP and MP, so users won't see the different behaviour as a bug (and even checking in SP could be worked around by the user).
2009-01-10(svn r14952) -Codechange: unify the "can vehicle go to station" testsrubidium
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2009-01-09(svn r14944) -Cleanup: add spaces around some operatorsrubidium
2009-01-09(svn r14933) -Codechange: check the whether a pool item can be constructed ↵rubidium
instead of trying to make it and check for NULL.
2009-01-08(svn r14925) -Fix [FS#2500]: Abort dragging of vehicles in the group window ↵frosch
when they are deleted.
2009-01-04(svn r14835) -Change: apply the 'warn if train's income is negative' setting ↵smatz
to other vehicle types, too
2009-01-04(svn r14831) -Codechange: use {VEHICLE} instead of Train/Ship/Road ↵smatz
veh/Aircraft/{STRING} {COMMA} in lang files (part by Swallow)
2009-01-04(svn r14828) -Codechange: move most of save/load-specific code to separate filessmatz
2009-01-03(svn r14803) -Codechange: move order list management into it's own class and ↵rubidium
remove the order count from the savegame as we can easily count that (PhilSophus)
2009-01-02(svn r14785) -Fix [FS#2132]: vehicle list for station gets closed when ↵rubidium
station view is closed even when the vehicle list is stickied. Other vehicle lists are not deleted when their 'opening' window gets closed so do the same with the station view.
2008-12-28(svn r14754) -Codechange: get rid of _cmd_text and just pass it as ↵rubidium
(optional) parameter.
2008-12-26(svn r14753) -Fix (r1): after buying a company, one could have more vehicles ↵smatz
with the same UnitID
2008-12-26(svn r14751) -Codechange: put VehicleEnterTile declaration where it should ↵smatz
be and use correct return type
2008-12-26(svn r14748) -Codechange: unduplicate window updating when deleting vehicles.rubidium
2008-12-26(svn r14747) -Codechange: remove DeleteVehicleChain in favour of the vehicle ↵rubidium
destructor as that was already doing the same for a few vehicle types.
2008-12-26(svn r14745) -Codechange: move "depot_list" and "leave_depot_immediately" ↵rubidium
out of the vehicle struct (saving up to 16 bytes per vehicle) as it is only used to tell a calling function entered a depot (for autoreplace).
2008-11-02(svn r14559) -Fix [FS#2387]: A train could be blocked inside a depot if it ↵michi_cc
was reversed just after leaving the depot.
2008-10-24(svn r14524) -Add: stop-in-depot as part of orders (PhilSophus)rubidium
2008-10-19(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)rubidium
2008-10-14(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)rubidium
2008-10-07(svn r14448) -Codechange [FS#2328]: rename a few variables (based on a patch ↵smatz
by planetmaker)
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-27(svn r14406) -Fix [FS#Eddi]: Autoreplace did not work for vehicles in free ↵frosch
wagon chains.