summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
AgeCommit message (Collapse)Author
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.
2008-01-12(svn r11822) -Codechange: Replaced fixed size custom name array. Names are ↵peter1138
now attached to their object directly and there is no limit to the amount of names. -Fix: NewGRF engines could not be renamed.
2008-01-12(svn r11821) -Fix (r11802): 'optimization assert' when removing crashed ↵smatz
wagon in some cases
2008-01-12(svn r11820) -Fix: invalidate depot window when removing crashed trainsmatz
2008-01-12(svn r11819) -Fix: do not access the Vehicle struct that has been already ↵smatz
deleted when removing crashed train
2008-01-12(svn r11818) -Codechange: split player.h into smaller pieces.rubidium
2008-01-11(svn r11812) -Codechange: introduce TrainExitDir() to simplify some functionssmatz
2008-01-09(svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very ↵smatz
long track -Codechange: use dedicated pathfinder for signal updating, resulting in better performance and possible future improvements
2008-01-09(svn r11800) -Codechange: move some functions to a more logical location + ↵rubidium
some type safety.
2008-01-09(svn r11793) -Codechange: pass the expense type via the CommandCost instead ↵rubidium
of a global variable. Patch by Noldo (FS#1114).
2008-01-09(svn r11789) -Codechange: coding style for global variable namespeter1138
2008-01-09(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.rubidium
2008-01-07(svn r11775) -Codechange: move all autoreplace/autorenew functions to a ↵rubidium
single location.
2008-01-07(svn r11774) -Change: do not include variables.h in a header when it is not ↵rubidium
needed.
2008-01-04(svn r11760) -Codechange: unify the way how other end of a tunnel/bridge is ↵smatz
determined at some places -Fix: adding road/tram to tram/road bridge was cheaper by one tile
2008-01-01(svn r11741) -Feature: Add support for NewGRF's train 'tilt' flag. Trains ↵peter1138
with tilt capability (specific details are per NewGRF set) will be given a 20% speed limit bonus on curves.
2008-01-01(svn r11738) -Codechange: Refactor realistic acceleration's curve counting ↵peter1138
to use DirDiffs instead of local tables, and remove an unnecessary loop.
2008-01-01(svn r11733) -Fix: Max speed for entering stations overrode the max speed of ↵peter1138
curves