peter1138
dda6cab17a
(svn r12209) -Fix: [NewGRF] Support using any base price for rail and road vehicles' running cost, and show running cost of wagons if they have it.
17 years ago
peter1138
79b6b9cb66
(svn r12205) -Codechange: rename RailVehicleInfo::running_cost_base to running_cost, inline with other vehicle types (It is the factor, not the base)
17 years ago
frosch
1e74834441
(svn r12203) -Fix (r12199): Make trains pay attention to signals again.
17 years ago
frosch
b7993793c8
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
17 years ago
smatz
a190606f2e
(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
...
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
17 years ago
smatz
73a6525129
(svn r12194) -Codechange: apply coding style on enum TrainSubtype
17 years ago
smatz
169ac7c91d
(svn r12189) -Codechange: mark some functions in train_cmd.cpp inline (called once or very short)
17 years ago
smatz
595d9357c3
(svn r12188) -Codechange [FS#1782]: do not check twice for correct rail owner (patch by Vikthor)
17 years ago
smatz
509b3a3247
(svn r12179) -Codechange: use GetCrossingRailTrack() and GetCrossingRailAxis() to improve code readability
17 years ago
smatz
c7a8080c3a
(svn r12178) -Codechange: use the 'side' parameter in TrainController and TrainCheckIfLineEnds to simplify the code
17 years ago
smatz
a0ddc43e92
(svn r12134) -Change: count the number of ticks a vehicle was running this 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
17 years ago
smatz
fd51465c8b
(svn r12132) -Cleanup: convert pathfinder selection from if/else to switch/case at many places
17 years ago
smatz
480036254b
(svn r12131) -Fix (r3374): with mammoth trains disabled, maximum train length was limited to 9
17 years ago
smatz
507728f46b
(svn r12129) -Change [FS#1759]: simplified patch settings for pathfinders (Yorick)
17 years ago
peter1138
df7327b453
(svn r12128) -Codechange: Replace last use of TrainPlayLeaveStationSound(v) with v->PlayLeaveStationSound(), and remove wrapper function.
17 years ago
frosch
7b9efcea21
(svn r12085) -Fix(r12058): Road vehicles could get stuck, when NPF told them to reverse on junction tiles. (spotted by SmatZ)
17 years ago
belugas
62b3520e51
(svn r12066) -Codechange: Rename GetBridge for the more common GetBridgeSpec
...
-Codechange: Remove direct access to the _bridge table in favor of the above mentioned GetBridgeSpec
-Codechange: Rationalize the use of Bridge type pointer
17 years ago
smatz
04ef38ec60
(svn r12057) -Fix: slowdown train when approaching 90deg turn when 90deg turns are forbidden
17 years ago
glx
525409b0fc
(svn r12037) -Codechange: replace OnNewDay_(Aircraft|RoadVeh|Ship|Train) with an OnNewDay method in the Vehicle class
17 years ago
smatz
c8ba8d930b
(svn r11996) -Fix [FS#1706]: update train statusbar when stopping from zero speed
17 years ago
smatz
0b888ccc00
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
17 years ago
smatz
730dda867b
(svn r11922) -Codechange: use MaybeBarCrossingWithSound() to bar crossing with sound
17 years ago
smatz
1d59439166
(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
...
-Fix: refit button widget was not correctly updated
17 years ago
smatz
8d077b16d8
(svn r11910) -Fix: play 'ding-ding' crossing sound in more cases (except gameload and crossing construction)
...
-Fix: crossing sound is bound to tile, not to vehicle
17 years ago
smatz
822242f411
(svn r11908) -Fix: update crossing when merging a company, when building a crossing and after loading older savegame
17 years ago
smatz
c74cf439fa
(svn r11900) -Fix: set correctly crossing state after train reversal, train leaving crossing, train crash
...
Fixes several ways to leave crossing red forever or to leave it unbarred when there is a train on crossing
17 years ago
smatz
ac7bc24b0e
(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places
17 years ago
smatz
692fbb3c05
(svn r11877) -Fix: another way to crash competitors' train in a station
...
-Codechange: increase the speed train is approaching line end/semaphore in non-diagonal direction a bit
17 years ago
smatz
40a7ace4fa
(svn r11870) -Fix: slow down train when approaching tile we can't enter in 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
17 years ago
rubidium
576f8ad93e
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
17 years ago
smatz
245f05a7cc
(svn r11864) -Codechange: pass owner whose signals we will update instead of complex detection later
17 years ago
smatz
7beb63a93b
(svn r11847) -Fix: do not affect the speed a train is entering a depot by trackbits behind it
17 years ago
smatz
bfc4d80c8e
(svn r11845) -Codechange: simplify train collision detection a bit
17 years ago
smatz
8da51e5eb2
(svn r11835) -Fix: mark depot, viewports, vehicle lists and vehicle details dirty when a train crashes
17 years ago
rubidium
dc87b05e8c
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
smatz
b0c34f4d62
(svn r11831) -Fix: call TrainConsistChanged() when removing crashed train part to be consistent with saveload process
17 years ago
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
peter1138
ab8382c0db
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
...
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
17 years ago
smatz
a222fe2e86
(svn r11821) -Fix (r11802): 'optimization assert' when removing crashed wagon in some cases
17 years ago
smatz
704a75871a
(svn r11820) -Fix: invalidate depot window when removing crashed train
17 years ago
smatz
712d4b6259
(svn r11819) -Fix: do not access the Vehicle struct that has been already deleted when removing crashed train
17 years ago
rubidium
ac528411df
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
smatz
4d04077156
(svn r11812) -Codechange: introduce TrainExitDir() to simplify some functions
17 years ago
smatz
f44a9a5d5b
(svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very long track
...
-Codechange: use dedicated pathfinder for signal updating, resulting in better performance and possible future improvements
17 years ago
rubidium
998d7644f6
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
17 years ago
rubidium
46650c54b6
(svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114).
17 years ago
peter1138
a01fc4c142
(svn r11789) -Codechange: coding style for global variable names
17 years ago
rubidium
0e517fe023
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
17 years ago
rubidium
a8a3a7e3f2
(svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location.
17 years ago
rubidium
b0ac283aec
(svn r11774) -Change: do not include variables.h in a header when it is not needed.
17 years ago
smatz
7302d8c88b
(svn r11760) -Codechange: unify the way how other end of a tunnel/bridge is determined at some places
...
-Fix: adding road/tram to tram/road bridge was cheaper by one tile
17 years ago
peter1138
47082fec5c
(svn r11741) -Feature: Add support for NewGRF's train 'tilt' flag. Trains with tilt capability (specific details are per NewGRF set) will be given a 20% speed limit bonus on curves.
17 years ago
peter1138
47d23eb003
(svn r11738) -Codechange: Refactor realistic acceleration's curve counting to use DirDiffs instead of local tables, and remove an unnecessary loop.
17 years ago
peter1138
a8611311ac
(svn r11733) -Fix: Max speed for entering stations overrode the max speed of curves
17 years ago
peter1138
a967a7287f
(svn r11732) -Fix (r4150): elrail merge gave elrail, monorail & maglev unintended speed bonuses for curves, as the bonus was based on the railtype index. The bonus is now specified by a property of the railtype.
17 years ago
peter1138
7031358cff
(svn r11731) -Fix [FS#1582]: Clear sprite override data before performing NewGRF wagon attach callback. This stopped
...
the callback working for autoreplace and when moving wagons from train to train in a depot.
-Fix (r11724): Don't check wagon attach callback for the chain when moving a single wagon.
17 years ago
rubidium
1a70eed58c
(svn r11724) -Fix: make it impossible (for users) to circumvent the length checking of the NewGRF 'allow wagon attach' callback by moving several wagons at a time.
17 years ago
rubidium
e5e75bd8f8
(svn r11719) -Codechange: split sound.h in a header with types and one with functions.
17 years ago
smatz
38f0e422ac
(svn r11707) -Fix: do not allow refitting flooded (destroyed) vehicles
17 years ago
rubidium
384503e7d3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
17 years ago
smatz
4e66f5a04b
(svn r11705) -Fix [FS#1557]: trains could have sprites with wrong direction when reversing, also was inconsistent with save/load process (possible desyncs)
17 years ago
rubidium
b9046c97fb
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
2786d789a1
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
rubidium
429521a7d1
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
rubidium
6a9e77e079
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
17 years ago
rubidium
9e9cfe6e59
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
17 years ago
rubidium
433a9f3c09
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
5b49e75453
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
17 years ago
rubidium
f56a354d31
(svn r11661) -Codechange: some header reworks in order to try to reduce the compile time of OpenTTD by reduce the amount of circular-ish dependencies.
17 years ago
smatz
145517fb8e
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
17 years ago
smatz
3cee0abdba
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
17 years ago
smatz
acf6e08f78
(svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks
17 years ago
smatz
5992187a85
(svn r11634) -Fix: update signals when deleting crashed train on a bridge, update even when train is rotated
17 years ago
smatz
4b7f8f04a3
(svn r11633) -Codechange: merge CheckTunnelEmpty and IsVehicleOnBridge into GetVehicleTunnelBridge
17 years ago
smatz
ed54703db8
(svn r11623) -Fix [FS#1533] (r11619): assert when train is going over two crossings next to each other
17 years ago
smatz
359c9aea3f
(svn r11619) -Fix [FS#1531]: do not make crossing red behind depot the train is entering
17 years ago
glx
0f43982c72
(svn r11567) -Fix [FS#1512] (r11011): break the chain before moving a vehicle after another in the same chain
17 years ago
skidd13
bdc7fd2d76
(svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp cause they depend on Random()
...
-Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
17 years ago
skidd13
a91c2a4c39
(svn r11485) -Codechange: Remove the doubled function ToggleBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
eeaa348f8b
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
5c31a973a1
(svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
71c4325c50
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
skidd13
50bfe1a19d
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
17 years ago
skidd13
8be526e499
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
17 years ago
glx
f28723830f
(svn r11431) -Codechange: [NewGRF] Add support for changing rail vehicle user-defined bit mask (prop 25) via callback 36
17 years ago
truelight
4b8aaa994c
(svn r11383) -Codechange: fixed all the mess around KillFirstBit (tnx to Rubidium and skidd13)
17 years ago
glx
4041d8108a
(svn r11352) -Codechange: cache callback 2D result (vehicle color mapping) instead calling it every time the vehicle is drawn
17 years ago
maedhros
68a1fbd437
(svn r11333) -Fix: Train engines still had a value of 0.
17 years ago
rubidium
4bb210614b
(svn r11332) -Fix: vehicles getting a value of 0 on construction.
...
-Fix: assertion when selling vehicles.
17 years ago
rubidium
cbfe23108c
(svn r11230) -Fix [FS#1228]: one could construct trains out of crashed wagons and engines. Based on a patch by SmatZ.
17 years ago
rubidium
b6c9bc80cf
(svn r11229) -Fix [FS#1307]: one could sell vehicles that were crashed in a depot, which would still yield money.
17 years ago
rubidium
127c7c9b0f
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
17 years ago
rubidium
a6a8502ca3
(svn r11134) -Fix [FS#1238]: vehicles got removed twice from the group list when selling whole trains.
17 years ago
rubidium
257fdb38e6
(svn r11122) -Fix [FS#1234]: crash when building a NewGRF vehicle when the articulated build vehicle callback returneed a different value for the purchase window than the normal build. Thanks for Dalestan and _minime_ for pointers to possible causes.
17 years ago
rubidium
9da9e77641
(svn r11120) -Codechange: remove the arbitrary limit of 10 articulated parts for a vehicle.
17 years ago
rubidium
74d0bf52b2
(svn r11086) -Fix/Revert (r11053, r10984): "fixing" r11053 made the acceleration code use the wrong speed, which can be fixed by reverting a small piece of r10984.
17 years ago
rubidium
38ff181ebf
(svn r11072) -Fix [FS#1045]: when a vehicle had a service order, the goto-depot button did not make it possible to stop the vehicle at that depot.
17 years ago
rubidium
91a49cee55
(svn r11059) -Fix [FS#1182]: inconsistency between Rail<->ElRail conversions of different kinds of rail containing tiles (normal rail, stations, depots, etc). Patch by SmatZ.
17 years ago
rubidium
15ea3be986
(svn r11048) -Fix [FS#1206]: several cases where (re)moving eninges on a train would corrupt the vehicle counts for the groups.
17 years ago
bjarni
7cdf6d1cbe
(svn r11045) -Codechange: added a function to tell if a vehicle is the rear part of a dualheaded train engine
17 years ago