Commit Graph

671 Commits (beda7ebb39c78b9822018b05565b4d9b56a9506a)

Author SHA1 Message Date
rubidium 215452b911 (svn r23195) -Codechange: if we really need to cast away constness, use const_cast 13 years ago
frosch 3178814a00 (svn r23173) -Codechange: Rename GetVehicleCapacity() to Engine::DetermineCapacity(). 13 years ago
frosch a608cbab5d (svn r23148) -Change: [NewGRF] Check the results of various callbacks for validness. 13 years ago
michi_cc 1497efbd5d (svn r23112) -Codechange: Check if vehicle chain lengths stays constant when auto-refitting. 13 years ago
rubidium e8eb3fe381 (svn r23110) -Codechange: let the flying altitude return ints are well 13 years ago
rubidium 0e2d2b2317 (svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables 13 years ago
rubidium de980ef0f9 (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 ad38f27242 (svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code. 13 years ago
frosch e57ba5d0ae (svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code. 13 years ago
frosch 4cbd8791a4 (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 37301ea23d (svn r22985) -Feature: Display autoreplace status in group GUI. 13 years ago
frosch f9f257ce4a (svn r22984) -Feature: Display profit icons for groups in the group GUI. 13 years ago
frosch a80d20fdb1 (svn r22982) -Cleanup: Remove CountCompanyVehicles() and use ALL_GROUP statistics instead. 13 years ago
frosch f406385319 (svn r22981) -Add: GroupStatistics for the ALL_GROUP. 13 years ago
frosch f43290d6af (svn r22980) -Add: GroupStatistics for DEFAULT_GROUP. 13 years ago
frosch 3ecf9d424a (svn r22979) -Codechange: Add GroupStatistics::CountEngine(). 13 years ago
frosch 3665b85c24 (svn r22978) -Codechange: Replace IncreaseGroupNumVehicle() and DecreaseGroupNumVehicle() with GroupStatistics::CountVehicle(). 13 years ago
frosch c531453320 (svn r22976) -Codechange: Split group statistics into separate struct. 13 years ago
frosch 43053b59a2 (svn r22947) -Fix: [NewGRF] Do not call CB 32 for disaster, effect vehicles or aircraft shadows/rotors. 13 years ago
frosch 0feb852668 (svn r22847) -Fix (r22816): Wagons shall not be processed by autorenew. 13 years ago
frosch e801aebbfc (svn r22816) -Feature(ette): [NewGRF] Also age wagons and articulated parts. 13 years ago
michi_cc d25840978c (svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period. 13 years ago
michi_cc 8b38847c1e (svn r22572) -Fix: MSVC performance warning (assigning int to bool). 13 years ago
michi_cc 5970854fa8 (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. 13 years ago
frosch bc3404f90c (svn r22506) -Feature [FS#4625]: Make the transparency options for industries also affect the effect vehicles created by industries. 13 years ago
frosch 5108896362 (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. 13 years ago
frosch 62b6d0eb0e (svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks. 13 years ago
planetmaker 7aa57e4acd (svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added 13 years ago
frosch 6fbc8e46a1 (svn r22333) -Change: Prefer deleting automatic orders instead of inserting new ones. 13 years ago
frosch 333a7ac24e (svn r22332) -Fix: When inserting automatic orders, do not create consecutive duplicate orders. 13 years ago
frosch 58c4de2caf (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) 13 years ago
frosch 1ef4e543e7 (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) 13 years ago
frosch 7de7488788 (svn r22328) -Add: a flag to GroundVehicles to disable insertion and removal of automatic orders until the next real order is reached. 13 years ago
frosch a296ccb74e (svn r22327) -Add: Vehicle::GetGroundVehicleFlags() for accessing GroundVehicle<>::gv_flags through a Vehicle struct. 13 years ago
frosch d53875b661 (svn r22324) -Fix: Vehicles skipped orders when inserting automatic orders failed. 13 years ago
frosch 071957f593 (svn r22245) -Codechange: Make vehicle lists handle command-/GUI-scope invalidations themself. 13 years ago
frosch 074548f8f3 (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 c85e1c3089 (svn r22116) -Codechange: use PoolBase::Clean() at more places 14 years ago
rubidium 7e4ff17e35 (svn r22111) -Codechange/fix-ish: upon cleaning a pool a destructor should not delete items from other pools 14 years ago
smatz 12b1f24ca1 (svn r22022) -Fix [FS#4468]: verify we can allocate an order before we actually try to do so 14 years ago
rubidium cb2c7f871f (svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h 14 years ago
rubidium b5f0c341eb (svn r22006) -Fix [FS#4480]: smoke/sparks of trains would be shown under bridges, or rather through bridges 14 years ago
rubidium c0f39415b9 (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 7c04ea586d (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 c7939e8a63 (svn r21932) -Document: some tidbits related to vehicles 14 years ago
alberth 5ef4317dd9 (svn r21925) -Doc: Doxygen additions and markup corrections to vehicle-related functions. 14 years ago
terkhen 0e51dab6a6 (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 54c0dec6aa (svn r21909) -Fix: some missing spaces 14 years ago
frosch aab0eff930 (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 05199a641a (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
terkhen fdb720cc1a (svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names. 14 years ago
terkhen 44a10ac857 (svn r21858) -Codechange: Give more similar names to ArticulatedPart functions. 14 years ago
rubidium 3dd1cf6049 (svn r21843) -Codechange: move documentation towards the code to make it more likely to be updates [t-z]. 14 years ago
rubidium 79c908d6f3 (svn r21826) -Fix [FS#4007]: the expectations from the "always build infrastructure" setting name/description didn't match the behaviour 14 years ago
rubidium 6ae5911ed0 (svn r21809) -Fix [FS#4404]: remove unreached automatic orders as well when reaching an ordered waypoint or depot (fonsinchen) 14 years ago
rubidium b9cd093c41 (svn r21808) -Fix: don't create automatic orders when there are no manual orders (fonsinchen) 14 years ago
rubidium da371c5776 (svn r21807) -Codechange: split automatic order removal into a separate function (fonsinchen) 14 years ago
smatz 6d9789fed8 (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 e98fe27c5d (svn r21802) -Cleanup (r2600): remove unused _vehicle_id_ctr_day 14 years ago
frosch a0c7c3ad54 (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 4f8cc1be46 (svn r21679) -Fix (r21642): reading a just freed variable 14 years ago
rubidium 1da871cc01 (svn r21643) -Fix (r21642): crash when a train with no orders (or actually no order list) stops at a station 14 years ago
rubidium 4d6841b553 (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 75b938beb7 (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 84033e2876 (svn r21597) -Fix (r21239): Also catch the case when callback 10 returns VE_DEFAULT. 14 years ago
frosch cbb10918e2 (svn r21596) -Codechange: Rename a misleading-named variable. 14 years ago
terkhen 0cbf97bc0e (svn r21562) -Change: Add articulated parts of vehicles in a refit selection to that selection. 14 years ago
terkhen d3dd1b0e2f (svn r21561) -Change: Allow to specify the number of vehicles to refit in the refit vehicle command. 14 years ago
terkhen f69d280f14 (svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains. 14 years ago
terkhen f7c4d35f67 (svn r21519) -Codechange: Allow direct access to the GroundVehicleCache from a Vehicle. 14 years ago
terkhen 74c061c29a (svn r21518) -Codechange: Rename AccelerationCache to GroundVehicleCache. 14 years ago
rubidium a4289a4e23 (svn r21508) -Codechange: move the code to handle the pathfinder's "path found" status to a separate function 14 years ago
rubidium d5bdeb3589 (svn r21466) -Codechange: make VehicleHasDepotOrders a function of Vehicle. 14 years ago
rubidium 6dc948c667 (svn r21249) -Fix (r21240, r21236) [FS#4242]: rear ends of dualheaded engines didn't smoke nor spark (Hirundo) 14 years ago
rubidium 3969e4f951 (svn r21240) -Feature: [NewGRF] Implement action0 visual effect properties for ships and RVs (Hirundo) 14 years ago
rubidium a56627cc77 (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 8ed1333952 (svn r21237) -Codechange: Move HandleLocomotiveSmokeCloud to Vehicle::ShowVisualEffect (Hirundo) 14 years ago
rubidium 5f4754f2db (svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo) 14 years ago
terkhen b4c22e854f (svn r21214) -Add: Display mail capacity when refitting an aircraft to passengers. 14 years ago
terkhen 79ab8cb571 (svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time. 14 years ago
alberth e5b817e99a (svn r21088) -Doc: Additions/corrections of doxygen comments. 14 years ago
alberth 063931d435 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 14 years ago
frosch edd01d21da (svn r21039) -Fix/Cleanup: Remove an unneeded and even wrong test, which is never reached anyway though. 14 years ago
frosch 4872b93e49 (svn r20847) -Codechange: Split most of GetEngineLivery() into a separate GetEngineLiveryScheme() function. 14 years ago
rubidium 1664ac1eb5 (svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers 14 years ago
smatz 63b8fea69f (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 adb7baf2d8 (svn r20646) -Codechange: make the code flow of breakdown handling a bit clearer 14 years ago
rubidium 64f4b0d718 (svn r20645) -Codechange [FS#4086]: unify the code for checking for breakdown handling as well (Hirundo) 14 years ago
rubidium 28d1d32161 (svn r20644) -Codechange [FS#4086]: unify the vehicle breakdown code (Hirundo) 14 years ago
rubidium 360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
rubidium 514f566d7c (svn r20623) -Codechange: unify the storing of animation related information 14 years ago
rubidium 64264317a3 (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 876628e562 (svn r20581) -Codechange: simplify getting the station in CalcPercentVehicleFilled 14 years ago
rubidium 7caedf7810 (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 a51d34c048 (svn r20499) -Doc: Spelling fixes, and one doxygen comment addition. 14 years ago
rubidium b5d5a4e159 (svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well 14 years ago
alberth 015195c312 (svn r20391) -Fix [FS#3993]: Prevent buying more vehicles than allowed. 14 years ago
alberth 2157341f90 (svn r20390) -Codechange: Move company vehicle counting to vehicle.cpp. 14 years ago
frosch c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
yexo d94364c638 (svn r20234) -Fix [FS#3988]: refit costs from refit orders are subtracted from the vehicle yearly income 14 years ago
terkhen 5dfe48f2ce (svn r20142) -Fix [FS#3880]: Ships were not marked as dirty when stopping inside a depot. 14 years ago
frosch 782ec1bbff (svn r20106) -Fix (r5999): Engine and vehicle age were clamped at 0xFFFF, though there are 32bit available. 14 years ago
michi_cc 454144474a (svn r20098) -Fix [FS#3898]: A train reversing in a station would sometimes fail to release its reserved path. 14 years ago
alberth 0dd71a0d7e (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. 14 years ago
frosch 6f800a8407 (svn r20005) -Codechange: Enumify force_proceed. 14 years ago
frosch 604971bdb2 (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 76287b117f (svn r19963) -Add: Stop a vehicle after it crashes or is destroyed. 14 years ago
frosch a5bea603ea (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. 14 years ago
frosch ee53807e51 (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. 14 years ago
smatz 27949d219d (svn r19756) -Codechange: move UpdateViewport() from Vehicle to SpecializedVehicle in order to improve performance 14 years ago
rubidium cb92cdf975 (svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables 14 years ago
smatz 258b128a56 (svn r19614) -Codechange: "it's" => "its" where appropriate 14 years ago
alberth 72d62fd6fc (svn r19494) -Codechange: Remove _error_message. 14 years ago
yexo 22a27d3b62 (svn r19455) -Codechange: split all airport information in Station to a seperate class 14 years ago
alberth d5fe3f96c7 (svn r19405) -Codechange: CheckOwnership() returns a CommandCost. 15 years ago
alberth b04de719b3 (svn r19369) -Codechange: EnsureNoTrainOnTrackBits() returns a CommandCost now. 15 years ago
alberth a8385d5bf5 (svn r19366) -Codechange: Move setting of _error_message from the callback check routine to the caller. 15 years ago
alberth 014f651e65 (svn r19365) -Codechange: Move EnsureNoTrainOnTrackProc() to src/vehicle.cpp. 15 years ago
alberth 4c0d4990f5 (svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost. 15 years ago
yexo 23af928ce9 (svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info 15 years ago
alberth d0ec21fd3f (svn r19291) -Codechange: Rename HasVehicleOnTunnelBridge() to TunnelBridgeIsFree() and return a CommandCost status. 15 years ago
alberth 6601623518 (svn r19289) -Codechange: Move _error_message assignment from check routine to caller. 15 years ago
alberth 16f52ec33a (svn r19288) -Codechange: Move EnsureNoVehicleOnGround() and HasVehicleOnTunnelBridge() functions. 15 years ago
alberth e6397cf68b (svn r19282) -Doc: Add some doxygen doc markup. 15 years ago
smatz 5504b1105e (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 15 years ago
frosch 89e7d3bd2b (svn r19218) -Feature: [NewGRF] Add CB36 support for aircraft properties 0F and 11. (Eddi) 15 years ago
smatz 50530a2529 (svn r18978) -Fix [FS#3584](r14753): possible invalid memory access when merging companies 15 years ago
rubidium 7127338414 (svn r18872) -Codechange: introduce PaletteID and use it 15 years ago
rubidium f618acfb7d (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 15 years ago
rubidium ea240269dc (svn r18812) -Codechange: make some functions in train.h functions of Train. 15 years ago
rubidium 9467b7c6d6 (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 ad8d6e8dd2 (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 1c9fc3f3eb (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 1e9c78b9c4 (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 c22e462d96 (svn r18568) -Codechange: Bail out early. 15 years ago
frosch fec93aef84 (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 0508f789e9 (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 730f0483b9 (svn r18536) -Fix [FS#3386]: MSVC warning. Patch by pavel1269 15 years ago
peter1138 5b07373aab (svn r18479) -Fix (r6532): Direction is accounted for long before motion counter is updated 15 years ago
rubidium 8d8207e285 (svn r18468) -Codechange: make sure one never makes self-loops using Vehicle::SetNext 15 years ago
rubidium 6600610e47 (svn r18402) -Codechange: unify/centralise the code for crashing vehicles 15 years ago
rubidium 6278f0b8a9 (svn r18385) -Cleanup: remove the now unneeded multistop slot management code 15 years ago
frosch f9c3055445 (svn r17974) -Fix (r17926)[FS#3300]: C != T 15 years ago
frosch 6fba936a1f (svn r17930) -Fix (r17926): Aircraft were not carrying mail anymore, when CB15 was in use. 15 years ago
alberth 5a97b64d73 (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
15 years ago
frosch 9fafef56d0 (svn r17926) -Fix (r9352): Make the decision whether aircraft carry mail consistent. Now always the cargo class decides. 15 years ago
frosch 020c53fc7e (svn r17899) -Codechange: Deduplicate code for refitting vehicles. 15 years ago
frosch 23980e6486 (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
frosch 4cb5a3e8a2 (svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when a Engine * is already present. 15 years ago