summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
AgeCommit message (Collapse)Author
2009-10-06(svn r17726) -Cleanup: Remove some unneeded/unused parameters.frosch
2009-10-06(svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when ↵frosch
a Engine * is already present.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-10-03(svn r17684) -Fix: tcache.first_engine and rcache.first_engine need to be ↵frosch
set before first callback/sprite-resolving. For RV fronts it was missing at all, causing livery selection to fail.
2009-09-22(svn r17616) -Codechange [FS#3222]: Enumerize properties used in callback ↵frosch
0x36. Based on Terkhen's work.
2009-09-20(svn r17594) -Fix: Vehicle image was not always updated when needed.frosch
2009-09-19(svn r17576) -Fix [FS#3208]: assertion triggered when the second vehicle in ↵rubidium
a 101+ (or 11+ if mammoth trains is disabled) vehicle free wagon chain is an engine and the first vehicle is moved to another chain
2009-09-18(svn r17567) -Fix: some doxygen warningsrubidium
2009-09-15(svn r17552) -Codechange: rename load_unload_time_rem to something more ↵rubidium
generic as it's used for more than just load/unload. Also add some documentation about where it is used.
2009-09-14(svn r17534) -Codechange: unify the naming of callback masks/flagsrubidium
2009-09-13(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty ↵frosch
for more consistency and distinguishability.
2009-09-10(svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' ↵rubidium
with GetDepotIndex(tile)
2009-09-01(svn r17352) -Fix [FS#3162]: trains wouldn't show smoke if the load/unload ↵rubidium
counter wasn't 0, though there doesn't seem to be a reason to check that variable anyhow anymore
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-14(svn r17168) -Codechange: apply coding style to if and while statementssmatz
2009-08-10(svn r17152) -Fix: A stuck train could free the reservation of another train ↵michi_cc
if it was reversed or did crash.
2009-08-10(svn r17151) -Fix [FS#3104] (r13974): A train entering a PBS section through ↵michi_cc
a block signal could cause a train crash if another reservation ending at a safe tile was already present in the section.
2009-08-08(svn r17121) -Fix [FS#3060]: Update vehicle position cache when the vehicle ↵frosch
sprite changes.
2009-08-06(svn r17085) -Codechange: unify the place where vehicle's cargo agessmatz
2009-08-06(svn r17084) -Codechange: _age_cargo_skip_counter is common to all vehicle typessmatz
2009-08-05(svn r17075) -Codechange: rename ~750 strings to be more uniform with their ↵rubidium
relatives
2009-08-04(svn r17062) -Change: unify the naming of some 125 stringsrubidium
2009-07-25(svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and ↵rubidium
trainst_h.
2009-07-24(svn r16939) -Codechange: s/RailwayStation/RailStation/ to unify the way ↵rubidium
it's written.
2009-07-22(svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions ↵rubidium
all over the place when using the more advanced station types. -Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
2009-07-22(svn r16908) -Codechange: s/DepotWaypointReservation/DepotReservation/rubidium
2009-07-21(svn r16907) -Codechange: make a more clear distinction between reservation ↵rubidium
functions that return a bool and that return TrackBits; GetRailStationReservation vs GetRailwayStationReservation, which one returns the bool and which one the TrackBits?
2009-07-21(svn r16901) -Fix [FS#3046] (rpbs): when marking trains stuck don't reset ↵rubidium
the unload counter/stuck when the vehicle is unloading. It'll be automatically reset once the vehicle wants to leave the station
2009-07-20(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().frosch
2009-07-19(svn r16884) -Codechange: Add Train::GetFirstEnginePart() and use it.frosch
2009-07-17(svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains ↵frosch
in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables.
2009-07-17(svn r16857) -Fix [FS#3036](r16652): crash when train partially in depot crashedsmatz
2009-07-16(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()smatz
2009-07-08(svn r16772) -Fix [FS#3019]: don't use the same error message for turning ↵rubidium
around road vehicles and flipping parts of trains in the depot
2009-07-02(svn r16723) -Codechange: make GetNextArticPart(), GetLastEnginePart(), ↵smatz
GetNextVehicle(), GetPrevVehicle(), GetNextUnit(), GetPrevUnit() members of Train
2009-07-02(svn r16720) -Codechange: make Set/ClearFrontEngine(), ↵smatz
Set/ClearArticulatedPart(), Set/ClearWagon(), Set/ClearEngine(), Set/ClearFreeWagon() and Set/ClearMultiheaded() members of Train
2009-07-01(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), ↵smatz
IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
2009-07-01(svn r16718) -Codechange: make IsFreeWagon() member of Trainsmatz
2009-07-01(svn r16717) -Codechange: make IsFrontEngine() member of Trainsmatz
2009-06-25(svn r16655) -Codechange: use IsRailwayStationTile() moresmatz
2009-06-24(svn r16652) -Codechange: use less strict, but faster check for quickly ↵smatz
bailing out in FindTrainCollideEnum() (Bilbo) -Codechange: shuffle the code a bit
2009-06-24(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()smatz
2009-06-23(svn r16641) -Codechange: reduce number of multiplications done in ↵smatz
FindTrainCollideEnum() to minimum
2009-06-23(svn r16633) -Codechange: remove checks for consistency of newpoolsmatz
2009-06-16(svn r16581) -Codechange: unify the access to Engine::lifelength.rubidium
2009-06-16(svn r16580) -Codechange: rename Engine::image_index to original_image_index ↵rubidium
to not confuse it with image_index from *VehInfo.
2009-06-13(svn r16571) -Fix [FS#2974](r16322): in some cases, train could be stuck in ↵smatz
depot
2009-06-10(svn r16553) -Codechange: don't use TRACK_BIT_WORMHOLE and TRACK_BIT_DEPOT ↵smatz
as bitmasks
2009-06-09(svn r16545) -Cleanup: tunnels have been returning correct SlopeZ since r1smatz
2009-06-06(svn r16527) -Codechange: use static member functions instead of simple ↵smatz
casts when converting Vehicle to specialised vehicle types. Includes safety check