summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
2009-06-01(svn r16491) -Codechange: Added parentheses around bitwise operators for ↵alberth
code style.
2009-05-31(svn r16477) -Fix [FS#2936] (r12650): loading indicator when 'unload' in and ↵rubidium
'no loading' is off was pointing to the wrong direction.
2009-05-30(svn r16472) -Codechange: set vehicle type in SpecializedVehicle constructor ↵smatz
instead of constructor of each vehicle type
2009-05-27(svn r16451) -Fix (r16449): crash when a spectator (or dedicated server) ↵smatz
received news about new engine
2009-05-26(svn r16439) -Change: Make the default vehicle servicing settings ↵yexo
company-based settings, so in a multiplayer game everyone can change them.
2009-05-26(svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be ↵rubidium
reached like break after returns or break after functions that never return (i.e. NOT_REACHED)
2009-05-24(svn r16422) -Codechange: use const_cast for removing const and warn when ↵rubidium
const is (accidentally?) removed using C-style casts.
2009-05-24(svn r16421) -Codechange: do not unnecessarily remove constness or ↵rubidium
unnecessarily add it.
2009-05-24(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced ↵frosch
vehicles/stations/industries are deleted.
2009-05-24(svn r16414) -Change: Make it harder to ignore/close important error ↵frosch
messages. Esp. do not close them automatically after some time.
2009-05-23(svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehiclerubidium
2009-05-23(svn r16394) -Codechange: move (NewGRF) cache variables into a separate ↵rubidium
struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
2009-05-22(svn r16393) -Codechange: move VehicleRail to Train.rubidium
2009-05-22(svn r16392) -Codechange: move some variables (the ones that aren't caches) ↵rubidium
from VehicleRail to Train
2009-05-22(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.rubidium
2009-05-22(svn r16390) -Codechange: move u.road to RoadVehicle.rubidium
2009-05-22(svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriaterubidium
2009-05-22(svn r16388) -Codechange: move u.air to Aircraftrubidium
2009-05-22(svn r16387) -Codechange: use Aircraft instead of Vehicle where appropriaterubidium
2009-05-22(svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle.rubidium
2009-05-22(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation ↵smatz
time, binary size and run time (with asserts disabled) should be improved
2009-05-22(svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle ↵smatz
was deleted
2009-05-18(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine toosmatz
2009-05-17(svn r16327) -Codechange: replace IsValidPoolItemID(index) by ↵smatz
PoolItem::IsValidID(index)
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-05-15(svn r16315) -Codechange: move the autorenew settings to a new ↵yexo
CompanySettings struct
2009-05-13(svn r16302) -Codechange: remove Vehicle::AllocateListsmatz
2009-05-13(svn r16299) -Fix (r16242): don't use DoCommandP when the function can be ↵smatz
called from another command
2009-05-13(svn r16291) -Fix [FS#2893]: RVs were unable to find a depot when turning ↵rubidium
around (in some cases), causing 'nearest depot' orders to be occasionally lost.
2009-05-09(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate ↵frosch
some code.
2009-05-06(svn r16242) -Codechange: rework pausingrubidium
-Fix [FS#2864]: autopause and manual pausing conflict with eachother -Fix: new game + pause on new game + autopause make the game not unpause on the first join
2009-05-06(svn r16240) -Fix: Make 'stop in depot'-orders only apply on the target ↵frosch
depot, not those which are entered on the way to them.
2009-05-04(svn r16228) -Fix/Change (r16187): If we are heading for a different depot, ↵frosch
do also not do the refitting-part of the depot-order. -Fix (r16198): && != &, GetDepotOrderType != GetDepotActionType and - uhm - ODATFB_NEAREST_DEPOT is not set for current_order either.
2009-05-01(svn r16198) -Fix/Change (r16187): 'Go to nearest depot'-orders are ↵frosch
fulfilled when reaching any depot, even though the train decided for a different depot on the last junction/order-skip.
2009-04-29(svn r16187) -Fix [FS#2871]: do mark the "go to depot X" order fulfilled ↵rubidium
when reaching any depot, but only when reaching depot X.
2009-04-27(svn r16178) -Fix [FS#2866]: don't try to reserve path for trains crashed in ↵smatz
station
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-04-21(svn r16114) -Cleanup: unify some more strings and remove some more unused ↵rubidium
strings
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