michi_cc
4d2a9e384c
(svn r23290) -Fix [FS#2379,FS#3569]: Change the centre of train vehicles to depend on the vehicle length instead of being fixed at 4/8th of the original vehicle length to make sure shortened vehicles don't block tiles they shouldn't block.
13 years ago
rubidium
c9a7f572ec
(svn r23195) -Codechange: if we really need to cast away constness, use const_cast
13 years ago
frosch
026317bb44
(svn r23173) -Codechange: Rename GetVehicleCapacity() to Engine::DetermineCapacity().
13 years ago
frosch
52774235eb
(svn r23148) -Change: [NewGRF] Check the results of various callbacks for validness.
13 years ago
michi_cc
a3e6e113fe
(svn r23112) -Codechange: Check if vehicle chain lengths stays constant when auto-refitting.
13 years ago
rubidium
9782b7bb0a
(svn r23110) -Codechange: let the flying altitude return ints are well
13 years ago
rubidium
2a2c102b0b
(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables
13 years ago
rubidium
7757a2ed40
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
13 years ago
frosch
acc3c75951
(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code.
13 years ago
frosch
72cd855978
(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.
13 years ago
frosch
cadaa0a8b6
(svn r23050) -Fix: [NewGRF] When vehicles break down, update the image cache after changing the vehicle state to make fish happy.
13 years ago
frosch
d071eefc54
(svn r22985) -Feature: Display autoreplace status in group GUI.
13 years ago
frosch
23a2f23eb3
(svn r22984) -Feature: Display profit icons for groups in the group GUI.
13 years ago
frosch
1a12008fcf
(svn r22982) -Cleanup: Remove CountCompanyVehicles() and use ALL_GROUP statistics instead.
13 years ago
frosch
dd74536bef
(svn r22981) -Add: GroupStatistics for the ALL_GROUP.
13 years ago
frosch
5be8f73204
(svn r22980) -Add: GroupStatistics for DEFAULT_GROUP.
13 years ago
frosch
fafa06e821
(svn r22979) -Codechange: Add GroupStatistics::CountEngine().
13 years ago
frosch
68f969282e
(svn r22978) -Codechange: Replace IncreaseGroupNumVehicle() and DecreaseGroupNumVehicle() with GroupStatistics::CountVehicle().
13 years ago
frosch
b6766c2ed5
(svn r22976) -Codechange: Split group statistics into separate struct.
13 years ago
frosch
2188383658
(svn r22947) -Fix: [NewGRF] Do not call CB 32 for disaster, effect vehicles or aircraft shadows/rotors.
13 years ago
frosch
b642b4a881
(svn r22847) -Fix (r22816): Wagons shall not be processed by autorenew.
13 years ago
frosch
28117b3eb0
(svn r22816) -Feature(ette): [NewGRF] Also age wagons and articulated parts.
13 years ago
michi_cc
08b7981f37
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
13 years ago
michi_cc
050a212195
(svn r22572) -Fix: MSVC performance warning (assigning int to bool).
13 years ago
michi_cc
c9af6126f8
(svn r22532) -Fix: Do not create an implicit order if the current order is the first order in the order list and we visit the station of the last entry of the order list.
14 years ago
frosch
460d24fd83
(svn r22506) -Feature [FS#4625]: Make the transparency options for industries also affect the effect vehicles created by industries.
14 years ago
frosch
87515d0873
(svn r22492) -Fix [FS#4624] (r21642, r22328): Only try to insert implicit orders for ground vehicles. Aircraft may reach unscheduled terminals when skippnig orders etc.
14 years ago
frosch
474b4799e8
(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.
14 years ago
planetmaker
43c8cd1d5e
(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added
14 years ago
frosch
204a6b16c3
(svn r22333) -Change: Prefer deleting automatic orders instead of inserting new ones.
14 years ago
frosch
74069dbda3
(svn r22332) -Fix: When inserting automatic orders, do not create consecutive duplicate orders.
14 years ago
frosch
8dd2f413bd
(svn r22331) -Change: When inserting an (automatic) order A in front of an order B, disable modifications of automatic orders for all vehicles currently heading for B as we do not know whether they will reach A or B first. (except for the vehicle causing the insertion of the automatic order itself)
14 years ago
frosch
709f0e4f83
(svn r22329) -Change: When the current orders are interrupted for non-ordered service, disable modifications to automatic orders until the next real order is completed. (train part already slipped by in r22328)
14 years ago
frosch
194a941a37
(svn r22328) -Add: a flag to GroundVehicles to disable insertion and removal of automatic orders until the next real order is reached.
14 years ago
frosch
aedd38255b
(svn r22327) -Add: Vehicle::GetGroundVehicleFlags() for accessing GroundVehicle<>::gv_flags through a Vehicle struct.
14 years ago
frosch
5eafcd8de6
(svn r22324) -Fix: Vehicles skipped orders when inserting automatic orders failed.
14 years ago
frosch
dd20823277
(svn r22245) -Codechange: Make vehicle lists handle command-/GUI-scope invalidations themself.
14 years ago
frosch
19b7249ade
(svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command.
14 years ago
smatz
756cc6cf65
(svn r22116) -Codechange: use PoolBase::Clean() at more places
14 years ago
rubidium
68bc93f950
(svn r22111) -Codechange/fix-ish: upon cleaning a pool a destructor should not delete items from other pools
14 years ago
smatz
7af2470a78
(svn r22022) -Fix [FS#4468]: verify we can allocate an order before we actually try to do so
14 years ago
rubidium
bc3ce1e53b
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
14 years ago
rubidium
64cba95fbe
(svn r22006) -Fix [FS#4480]: smoke/sparks of trains would be shown under bridges, or rather through bridges
14 years ago
rubidium
4c5ca17486
(svn r21957) -Cleanup: gotodepot and timetabling settings are more or less useless; just don't use depot orders or timetabling if you don't want to use it
14 years ago
frosch
a97d52a29a
(svn r21933) -Codechange: Split cur_order_index into cur_auto_order_index and cur_real_order_index to keep track of the current real order in an unambiguous way.
...
-Fix [FS#4440]: Automatic orders behave now stable wrt. service orders and are not added or removed depending on the need of servicing.
-Fix: Various other issues with automatic orders, e.g. vehicles getting stuck with "no orders" when there are automatic orders at the end of the order list.
14 years ago
rubidium
67a5cd0b18
(svn r21932) -Document: some tidbits related to vehicles
14 years ago
alberth
eea2f90da7
(svn r21925) -Doc: Doxygen additions and markup corrections to vehicle-related functions.
14 years ago
terkhen
734994c9ba
(svn r21924) -Codechange: Unify some parts of the articulated vehicle code.
...
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
14 years ago
rubidium
8017c2a3d7
(svn r21909) -Fix: some missing spaces
14 years ago
frosch
9a1c0f139a
(svn r21902) -Fix: Do not count articulated parts when passing the number of vehicles to refit to the command. That may exceed 8 bits.
14 years ago
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
14 years ago
terkhen
b5468e7a80
(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.
14 years ago
terkhen
cfbbcf1597
(svn r21858) -Codechange: Give more similar names to ArticulatedPart functions.
14 years ago
rubidium
d89095b3ec
(svn r21843) -Codechange: move documentation towards the code to make it more likely to be updates [t-z].
14 years ago
rubidium
62128e8263
(svn r21826) -Fix [FS#4007]: the expectations from the "always build infrastructure" setting name/description didn't match the behaviour
14 years ago
rubidium
bd9f07e5a0
(svn r21809) -Fix [FS#4404]: remove unreached automatic orders as well when reaching an ordered waypoint or depot (fonsinchen)
14 years ago
rubidium
4784c3ac3c
(svn r21808) -Fix: don't create automatic orders when there are no manual orders (fonsinchen)
14 years ago
rubidium
bc9afec3b0
(svn r21807) -Codechange: split automatic order removal into a separate function (fonsinchen)
14 years ago
smatz
0ab078158e
(svn r21804) -Remove [FS#4409]: the 'stopall' console command, as its functionality was broken. Group start/stop commands can be used instead
14 years ago
smatz
2709454040
(svn r21802) -Cleanup (r2600): remove unused _vehicle_id_ctr_day
14 years ago
frosch
be106c77a9
(svn r21738) -Fix (r21642)[FS#4384]: Start loading when cur_order_index points to the destination station, i.e. after deleting not-reached automatic orders.
14 years ago
rubidium
64c7cc51b5
(svn r21679) -Fix (r21642): reading a just freed variable
14 years ago
rubidium
b06b05c360
(svn r21643) -Fix (r21642): crash when a train with no orders (or actually no order list) stops at a station
14 years ago
rubidium
64f04c3a74
(svn r21642) -Feature: concept of automatic station orders; add stub orders for intermediate stations and remove them when not visiting them anymore. This allows you to see what trains visit a station without actually having to order a vehicle to stop at all stations. Based on patch by fonsinchen
14 years ago
frosch
c4ad5d6fea
(svn r21598) -Fix (r3139, r21236, r21249)[FS#4275]: The default visual effect only depends on properties of the Engine (wagon or not, tractiontype, ...), not whether it is used as articulated part, front engine or whatever in a specific consist.
14 years ago
frosch
4b2624de1d
(svn r21597) -Fix (r21239): Also catch the case when callback 10 returns VE_DEFAULT.
14 years ago
frosch
fbe653d4ef
(svn r21596) -Codechange: Rename a misleading-named variable.
14 years ago
terkhen
8fc48a79da
(svn r21562) -Change: Add articulated parts of vehicles in a refit selection to that selection.
14 years ago
terkhen
a1ff6859c5
(svn r21561) -Change: Allow to specify the number of vehicles to refit in the refit vehicle command.
14 years ago
terkhen
48b7916458
(svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains.
14 years ago
terkhen
a4a9274177
(svn r21519) -Codechange: Allow direct access to the GroundVehicleCache from a Vehicle.
14 years ago
terkhen
12c86a1391
(svn r21518) -Codechange: Rename AccelerationCache to GroundVehicleCache.
14 years ago
rubidium
6d831906a3
(svn r21508) -Codechange: move the code to handle the pathfinder's "path found" status to a separate function
14 years ago
rubidium
23369337c1
(svn r21466) -Codechange: make VehicleHasDepotOrders a function of Vehicle.
14 years ago
rubidium
40258d927f
(svn r21249) -Fix (r21240, r21236) [FS#4242]: rear ends of dualheaded engines didn't smoke nor spark (Hirundo)
14 years ago
rubidium
2223ff92c7
(svn r21240) -Feature: [NewGRF] Implement action0 visual effect properties for ships and RVs (Hirundo)
14 years ago
rubidium
46186134c8
(svn r21239) -Codechange/Fix: [NewGRF] Use 0xFF instead of 0 as default value for visual effect. This makes setting train prop 22 to 0 actually work (Hirundo)
14 years ago
rubidium
9af570eab4
(svn r21237) -Codechange: Move HandleLocomotiveSmokeCloud to Vehicle::ShowVisualEffect (Hirundo)
14 years ago
rubidium
b9407f7ca0
(svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo)
14 years ago
terkhen
c96cb9ce37
(svn r21214) -Add: Display mail capacity when refitting an aircraft to passengers.
14 years ago
terkhen
25d1b2f54b
(svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time.
14 years ago
alberth
fa13971337
(svn r21088) -Doc: Additions/corrections of doxygen comments.
14 years ago
alberth
7e48d85104
(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)
14 years ago
frosch
8dc7521bf2
(svn r21039) -Fix/Cleanup: Remove an unneeded and even wrong test, which is never reached anyway though.
14 years ago
frosch
611e986226
(svn r20847) -Codechange: Split most of GetEngineLivery() into a separate GetEngineLiveryScheme() function.
14 years ago
rubidium
f5128695c5
(svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers
14 years ago
smatz
fd54943c7a
(svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window
14 years ago
rubidium
f1f1c71a41
(svn r20646) -Codechange: make the code flow of breakdown handling a bit clearer
14 years ago
rubidium
2fb18e975c
(svn r20645) -Codechange [FS#4086]: unify the code for checking for breakdown handling as well (Hirundo)
14 years ago
rubidium
702cc96943
(svn r20644) -Codechange [FS#4086]: unify the vehicle breakdown code (Hirundo)
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
e2e26190d5
(svn r20623) -Codechange: unify the storing of animation related information
14 years ago
rubidium
9d1145e50c
(svn r20605) -Fix [FS#4063]: let NewGRFs var43 var (information about liveries) for vehicles not be influenced by the local setting determining whether to show liveries or not.
14 years ago
rubidium
d6cd62e633
(svn r20581) -Codechange: simplify getting the station in CalcPercentVehicleFilled
14 years ago
rubidium
287ee8c01d
(svn r20541) -Fix: when removing a vehicle update the "clone orders of"-vehicle of a backed up order, or remove it if there is no vehicle sharing orders with that vehicle.
14 years ago
alberth
35fec79700
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
14 years ago
rubidium
29b489a055
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
14 years ago
alberth
5cfc029523
(svn r20391) -Fix [FS#3993]: Prevent buying more vehicles than allowed.
14 years ago
alberth
e0e66b6ed0
(svn r20390) -Codechange: Move company vehicle counting to vehicle.cpp.
14 years ago
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
yexo
dd7800ea18
(svn r20234) -Fix [FS#3988]: refit costs from refit orders are subtracted from the vehicle yearly income
14 years ago
terkhen
8858729ae7
(svn r20142) -Fix [FS#3880]: Ships were not marked as dirty when stopping inside a depot.
14 years ago
frosch
1055c2b0fd
(svn r20106) -Fix (r5999): Engine and vehicle age were clamped at 0xFFFF, though there are 32bit available.
14 years ago
michi_cc
811f0db597
(svn r20098) -Fix [FS#3898]: A train reversing in a station would sometimes fail to release its reserved path.
14 years ago
alberth
604e56adc2
(svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation.
14 years ago
frosch
e931399b31
(svn r20005) -Codechange: Enumify force_proceed.
14 years ago
frosch
94efc4c3b9
(svn r19992) -Fix [FS#3878]: Clear force_proceed when entering depots and when loading.
...
-Fix (r18515): Resetting of force_proceed on manual stopping did not work.
14 years ago
terkhen
3287f91893
(svn r19963) -Add: Stop a vehicle after it crashes or is destroyed.
15 years ago
frosch
1d3adb2b66
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
15 years ago
frosch
9db3cde73a
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
15 years ago
smatz
00a52cc475
(svn r19756) -Codechange: move UpdateViewport() from Vehicle to SpecializedVehicle in order to improve performance
15 years ago
rubidium
f56ebd81c3
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
15 years ago
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
15 years ago
alberth
05d705e077
(svn r19494) -Codechange: Remove _error_message.
15 years ago
yexo
c4a88ce022
(svn r19455) -Codechange: split all airport information in Station to a seperate class
15 years ago
alberth
7cc68f493d
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
15 years ago
alberth
55f8d5d802
(svn r19369) -Codechange: EnsureNoTrainOnTrackBits() returns a CommandCost now.
15 years ago
alberth
6eac50bc16
(svn r19366) -Codechange: Move setting of _error_message from the callback check routine to the caller.
15 years ago
alberth
29b79e03e8
(svn r19365) -Codechange: Move EnsureNoTrainOnTrackProc() to src/vehicle.cpp.
15 years ago
alberth
c395b93acd
(svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost.
15 years ago
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
15 years ago
alberth
63dd6ce6b0
(svn r19291) -Codechange: Rename HasVehicleOnTunnelBridge() to TunnelBridgeIsFree() and return a CommandCost status.
15 years ago
alberth
993d82b879
(svn r19289) -Codechange: Move _error_message assignment from check routine to caller.
15 years ago
alberth
8408b42dee
(svn r19288) -Codechange: Move EnsureNoVehicleOnGround() and HasVehicleOnTunnelBridge() functions.
15 years ago
alberth
d7698bb6db
(svn r19282) -Doc: Add some doxygen doc markup.
15 years ago
smatz
f051066bc4
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
15 years ago
frosch
63b01f2009
(svn r19218) -Feature: [NewGRF] Add CB36 support for aircraft properties 0F and 11. (Eddi)
15 years ago
smatz
d155794605
(svn r18978) -Fix [FS#3584](r14753): possible invalid memory access when merging companies
15 years ago
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
15 years ago
rubidium
4d93b704d9
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
15 years ago
rubidium
aaf0b4b46c
(svn r18812) -Codechange: make some functions in train.h functions of Train.
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
e4af35d316
(svn r18764) -Fix [FS#3422]: split the (un)load ticks counter and signal wait counter; sometimes they might get into eachother's way
15 years ago
rubidium
fb9eba67d1
(svn r18642) -Fix [FS#3432]: when a company goes bankrupt and has vehicles on a drive through road stop that is not theirs, the 'filled' cache of the road stops would get corrupted
15 years ago
frosch
640442ae03
(svn r18571) -Fix (r18551): Vehicles not carrying any cargo (e.g. engines) were not considered for sending to depot for replacement.
15 years ago
frosch
4434422c11
(svn r18568) -Codechange: Bail out early.
15 years ago
frosch
7ea108224b
(svn r18551) -Fix [FS#1762]: When autoreplace is the only allowed reason to send vehicles to depot, first check some minimal requirements (engine availability, refittability) and a heuristic for the needed money.
15 years ago
rubidium
d48ad4b6e3
(svn r18549) -Fix: first do the time-since-last-service check and only then determine whether autoreplace needs to take place. This way they will not keep autoreplacing continuously on failure, but only after some timeout.
15 years ago
rubidium
5c2b6a8943
(svn r18536) -Fix [FS#3386]: MSVC warning. Patch by pavel1269
15 years ago
peter1138
5a8353fafc
(svn r18479) -Fix (r6532): Direction is accounted for long before motion counter is updated
15 years ago
rubidium
ae92fd2865
(svn r18468) -Codechange: make sure one never makes self-loops using Vehicle::SetNext
15 years ago
rubidium
19fa38601d
(svn r18402) -Codechange: unify/centralise the code for crashing vehicles
15 years ago
rubidium
0ef0e13795
(svn r18385) -Cleanup: remove the now unneeded multistop slot management code
15 years ago
frosch
828729344d
(svn r17974) -Fix (r17926)[FS#3300]: C != T
15 years ago
frosch
3a95e115fc
(svn r17930) -Fix (r17926): Aircraft were not carrying mail anymore, when CB15 was in use.
15 years ago
alberth
44aacfc59f
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
...
Gentlemen, swap your string parameters.
15 years ago
frosch
67cae40ec1
(svn r17926) -Fix (r9352): Make the decision whether aircraft carry mail consistent. Now always the cargo class decides.
15 years ago
frosch
00aca63b48
(svn r17899) -Codechange: Deduplicate code for refitting vehicles.
15 years ago
frosch
83894809d0
(svn r17897) -Fix [FS#3255]: CB15 and CB36 (capacity) were not always called when they should.
...
-Codechange: Move capacity calculation to a single function for all vehicle types, so the behaviour can be kept consistent easier.
15 years ago