summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
AgeCommit message (Collapse)Author
2008-03-30(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.rubidium
2008-03-28(svn r12482) -Fix: [build train] we don't need to have a depot in order to ↵bjarni
just check the price of a rail vehicle so don't check for compatible rails on the tile either also wagons will only need tracks they can drive on in order to be build so there is no reason to check for power in the depot
2008-03-28(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.rubidium
2008-03-19(svn r12386) -Fix [FS#1841](r2428): train could break apart when reversed ↵smatz
while partially in a depot
2008-03-19(svn r12384) -Fix (r2428): do not disconnect train when reversing, it may ↵smatz
'think' it is whole in a depot
2008-03-17(svn r12380) -Fix: update train acceleration and max speed after setting ↵glx
cached value to ensure the correct max speed is used with disabled real acceleration
2008-03-17(svn r12379) -Codechange: removed now redondant InvalidateWindow() callsglx
2008-03-17(svn r12378) -Fix: refresh vehicle details window when cached values are updatedglx
2008-03-17(svn r12377) -Fix [FS#1854]: set cached value for vehicle property 25 before ↵glx
other cached values
2008-03-15(svn r12369) -Fix (r1681): reset train speed limits when ↵smatz
_patches.realistic_acceleration changes
2008-03-15(svn r12368) -Codechange: use explicit body for loops and conditions and ↵smatz
remove -Wno-empty-body from the configure script
2008-03-03(svn r12332) -Fix (r12331): Invalidate cached data and update image after ↵peter1138
setting flag.
2008-03-03(svn r12331) -Feature: [NewGRF] vehicle variable FE bit 8glx
2008-02-21(svn r12209) -Fix: [NewGRF] Support using any base price for rail and road ↵peter1138
vehicles' running cost, and show running cost of wagons if they have it.
2008-02-20(svn r12205) -Codechange: rename RailVehicleInfo::running_cost_base to ↵peter1138
running_cost, inline with other vehicle types (It is the factor, not the base)
2008-02-20(svn r12203) -Fix (r12199): Make trains pay attention to signals again.frosch
2008-02-20(svn r12199) -Codechange: Remove magic around the results of ↵frosch
GetTileTrackStatus().
2008-02-20(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the ↵smatz
train had negative income -Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
2008-02-20(svn r12194) -Codechange: apply coding style on enum TrainSubtypesmatz
2008-02-20(svn r12189) -Codechange: mark some functions in train_cmd.cpp inline ↵smatz
(called once or very short)
2008-02-20(svn r12188) -Codechange [FS#1782]: do not check twice for correct rail ↵smatz
owner (patch by Vikthor)
2008-02-18(svn r12179) -Codechange: use GetCrossingRailTrack() and ↵smatz
GetCrossingRailAxis() to improve code readability
2008-02-18(svn r12178) -Codechange: use the 'side' parameter in TrainController and ↵smatz
TrainCheckIfLineEnds to simplify the code
2008-02-13(svn r12134) -Change: count the number of ticks a vehicle was running this ↵smatz
day to calculate running cost -Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
2008-02-13(svn r12132) -Cleanup: convert pathfinder selection from if/else to ↵smatz
switch/case at many places
2008-02-13(svn r12131) -Fix (r3374): with mammoth trains disabled, maximum train ↵smatz
length was limited to 9
2008-02-13(svn r12129) -Change [FS#1759]: simplified patch settings for pathfinders ↵smatz
(Yorick)
2008-02-13(svn r12128) -Codechange: Replace last use of TrainPlayLeaveStationSound(v) ↵peter1138
with v->PlayLeaveStationSound(), and remove wrapper function.
2008-02-08(svn r12085) -Fix(r12058): Road vehicles could get stuck, when NPF told them ↵frosch
to reverse on junction tiles. (spotted by SmatZ)
2008-02-05(svn r12066) -Codechange: Rename GetBridge for the more common GetBridgeSpecbelugas
-Codechange: Remove direct access to the _bridge table in favor of the above mentioned GetBridgeSpec -Codechange: Rationalize the use of Bridge type pointer
2008-02-04(svn r12057) -Fix: slowdown train when approaching 90deg turn when 90deg ↵smatz
turns are forbidden
2008-02-01(svn r12037) -Codechange: replace OnNewDay_(Aircraft|RoadVeh|Ship|Train) ↵glx
with an OnNewDay method in the Vehicle class
2008-01-27(svn r11996) -Fix [FS#1706]: update train statusbar when stopping from zero ↵smatz
speed
2008-01-23(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditionssmatz
2008-01-18(svn r11922) -Codechange: use MaybeBarCrossingWithSound() to bar crossing ↵smatz
with sound
2008-01-18(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of ↵smatz
constants -Fix: refit button widget was not correctly updated
2008-01-17(svn r11910) -Fix: play 'ding-ding' crossing sound in more cases (except ↵smatz
gameload and crossing construction) -Fix: crossing sound is bound to tile, not to vehicle
2008-01-17(svn r11908) -Fix: update crossing when merging a company, when building a ↵smatz
crossing and after loading older savegame
2008-01-17(svn r11900) -Fix: set correctly crossing state after train reversal, train ↵smatz
leaving crossing, train crash Fixes several ways to leave crossing red forever or to leave it unbarred when there is a train on crossing
2008-01-16(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify ↵smatz
the code at some places
2008-01-16(svn r11877) -Fix: another way to crash competitors' train in a stationsmatz
-Codechange: increase the speed train is approaching line end/semaphore in non-diagonal direction a bit
2008-01-16(svn r11870) -Fix: slow down train when approaching tile we can't enter in ↵smatz
more cases (tunnel/bridge/depot from wrong direction, competitor's track, wrong railtype) -Fix: do not make crossing red when we can't enter it in any case
2008-01-15(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync ↵rubidium
with other cases of *B_* vs *_* like VETSB_* and VETS_*.
2008-01-15(svn r11864) -Codechange: pass owner whose signals we will update instead of ↵smatz
complex detection later
2008-01-14(svn r11847) -Fix: do not affect the speed a train is entering a depot by ↵smatz
trackbits behind it
2008-01-13(svn r11845) -Codechange: simplify train collision detection a bitsmatz
2008-01-13(svn r11835) -Fix: mark depot, viewports, vehicle lists and vehicle details ↵smatz
dirty when a train crashes
2008-01-13(svn r11834) -Codechange: only include settings_type.h if needed.rubidium
2008-01-13(svn r11831) -Fix: call TrainConsistChanged() when removing crashed train ↵smatz
part to be consistent with saveload process
2008-01-13(svn r11828) -Codechange: include table/* as the last includes and remove an ↵rubidium
unneeded include from openttd.h.