summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
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.
2008-09-24(svn r14395) -Fix [FS#2285]: crashes and GUI desyncs when order is ↵smatz
deleted/modified while the timetable window is open -Fix: close any dropdown and child windows in the Order and Timetable windows when selected order is deselected, deleted, ...
2008-09-21(svn r14371) -Fix [FS#2313]: loading indicator didn't stay with the front ↵rubidium
engine when turning a train in a station.
2008-09-21(svn r14369) -Fix: Enforce non-front engines to be stopped.frosch
This could be caused by old savegames resp. their conversion, and causes trouble for e.g. autoreplace.
2008-09-16(svn r14343) -Fix [FS#2300]: invalid v->u.air.targetairport could cause ↵smatz
crashes at several places when the station pool got smaller
2008-09-15(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, ↵smatz
president and company renaming commands, too
2008-09-15(svn r14334) -Feature: ability to reset name to default/automatic value (for ↵smatz
vehicles, engines, towns, groups, stations, waypoints, managers and companies)
2008-09-14(svn r14324) -Fix [FS#2241]: free any blocks that a helicopter may have on ↵rubidium
an oilrig when the helicopter gets forcefully removed (bankruptcy). For other airports this isn't needed as they can't be used by multiple companies.
2008-09-09(svn r14285) -Fix [FS#2263]: A train inside a wormhole could free the ↵michi_cc
reservation of another train inside the wormhole.
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-09-02(svn r14223) -Codechange: make GetSprite aware of the 4 different types of ↵rubidium
sprites: fonts, recolour, mapgen and normal sprites.
2008-08-22(svn r14132) -Fix (r14039): Only reserve a path on leaving a station if the ↵frosch
current block really is a PBS block. (michi_cc)
2008-08-20(svn r14110) -Fix: desyncs due to bubbles in toylandglx
2008-08-17(svn r14097) -Fix [FS#2085]: one couldn't get a list of vehicles sharing an ↵rubidium
order when the number of orders was 0; you could see that the vehicles had a shared order though.
2008-08-17(svn r14096) -Codechange: merge the shared order's vehicle list management ↵rubidium
to a single location.
2008-08-17(svn r14095) -Fix (r14076): Trains shall not stop instantly.frosch
2008-08-17(svn r14089) -Fix [FS#2219]: trains not being able to find a route to a ↵rubidium
depot when the front is already in the depot.
2008-08-16(svn r14085) -Cleanup (r14083): Remove no longer used functions.frosch
2008-08-16(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the ↵frosch
autoreplace kernel.
2008-08-15(svn r14076) -Codechange: Merge the four start/stop commands into a single ↵frosch
CMD_START_STOP_VEHICLE.
2008-08-13(svn r14064) -Fix [FS#1752]: check for the length of strings (in bytes) in ↵rubidium
the command. Checking for the length in pixels is impossible because that differs per client.
2008-08-10(svn r14039) -Fix [FS#2217]: reversing an overlength train at a station ↵rubidium
would try to find a route out and sometimes reset the unload counter making it wait 2.5 years before departing instead of waiting until the train would actually leave the station (michi_cc)