Commit Graph

132 Commits

Author SHA1 Message Date
frosch d2393b4f6c (svn r27666) -Codechange: Pass vehicle sprites around using a struct VehicleSpriteSeq. 2016-10-16 14:57:56 +00:00
frosch 41b7a04a68 (svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to. 2014-02-07 23:48:56 +00:00
frosch 5eddbb338b (svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen) 2013-04-13 13:42:08 +00:00
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 2013-01-08 22:46:42 +00:00
michi_cc 245e32a10e (svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list sprites. (Based on patch by Eddi) 2012-12-23 01:00:25 +00:00
frosch 08a8c3a773 (svn r24384) -Fix [FS#5188-ish]: Make IsInDepot() functions behave consistent across vehicle types and add IsChainInDepot instead, if that is what shall be checked. 2012-07-07 15:39:46 +00:00
michi_cc 9232a2ef0c (svn r23773) -Change: [NewGRF] Update all cached train properties if a train vehicle enters a new railtype. 2012-01-08 12:47:54 +00:00
truebrain 1c9bec1999 (svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC) 2011-12-20 17:57:56 +00:00
smatz 33d283fdb1 (svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls 2011-12-18 17:17:18 +00:00
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. 2011-11-21 20:51:43 +00:00
rubidium 7757a2ed40 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 2011-11-04 10:18:13 +00:00
frosch bbc3409942 (svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs. 2011-11-01 16:51:47 +00:00
alberth b992a93996 (svn r21976) -Doc: Document several crash handling functions. 2011-02-05 16:20:55 +00:00
alberth da0b09557c (svn r21930) -Codechange: Remove unused vehicle GetTypeString() functions. 2011-01-30 21:32:21 +00:00
alberth eea2f90da7 (svn r21925) -Doc: Doxygen additions and markup corrections to vehicle-related functions. 2011-01-29 21:37:11 +00:00
terkhen 50b0e10026 (svn r21923) -Codechange: Unify articulated vehicle iteration functions. 2011-01-29 17:27:32 +00:00
rubidium b11f1bd4ed (svn r21911) -Codechange: move tcache.last_speed to gcache.last_speed and make SetLastSpeed a function of GroundVehicle 2011-01-26 17:31:07 +00:00
smatz 8b9f0d5ade (svn r21883) -Codechange: make UpdateZPosition() faster by not calling GetSlopeZ() when not needed 2011-01-21 17:35:17 +00:00
smatz 6dc24cf643 (svn r21876) -Codechange: typedef SpecializedVehicleBase and GroundVehicleBase to reduce typing 2011-01-21 14:43:38 +00:00
terkhen d426906a01 (svn r21862) -Codechange: Unify subtype handling between road vehicles and trains. 2011-01-19 20:04:09 +00:00
terkhen 613743538d (svn r21859) -Codechange: Move train subtype flags to GroundVehicle. 2011-01-19 18:42:54 +00:00
terkhen cfbbcf1597 (svn r21858) -Codechange: Give more similar names to ArticulatedPart functions. 2011-01-19 18:41:53 +00:00
michi_cc 868d035b45 (svn r21712) -Change: Tune 'realistic' acceleration even more to make more trains reach their top speed. 2011-01-04 18:12:28 +00:00
terkhen 48b7916458 (svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains. 2010-12-14 21:33:53 +00:00
rubidium 49a77e89c4 (svn r21504) -Codechange: move the "lost" bit from the train's flags to vehicle flags 2010-12-13 21:52:39 +00:00
rubidium b9407f7ca0 (svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo) 2010-11-18 14:09:39 +00:00
rubidium 79c47ef8b0 (svn r21232) -Codechange: Move cached_vis_effect from the TrainCache to the VehicleCache (Hirundo) 2010-11-18 14:03:12 +00:00
michi_cc 2d801c64a1 (svn r21106) -Change: Tuned realistic acceleration to be a bit more realistic in order to make acceleration "slower", which highlights the differences between vehicle types more. 2010-11-07 13:35:07 +00:00
terkhen c8a56f17f8 (svn r21097) -Codechange: Unify cached max speed for all vehicle types. 2010-11-06 12:53:31 +00:00
terkhen 766bf140db (svn r21092) -Codechange: Merge max speed functions. 2010-11-06 12:40:38 +00:00
alberth 7e48d85104 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 2010-10-30 17:51:07 +00:00
frosch 236737b2f2 (svn r20505) -Feature [FS#3978]: Allow changing visual effect when changing railtype. 2010-08-15 19:59:48 +00:00
frosch 57a098bccc (svn r20504) -Codechange: Move updating of train's visual effect to separate function. 2010-08-15 19:53:53 +00:00
frosch 4ca2609362 (svn r20503) -Fix (r18838): Powered wagons should check the railtype of the tile they are on, not where the engine is on. 2010-08-15 18:35:57 +00:00
terkhen 7d0297f967 (svn r20302) -Add: Method for getting the air drag of a ground vehicle. 2010-08-02 14:52:51 +00:00
terkhen 1fd66d7cc4 (svn r20299) -Add: Make trains and road vehicles use a different area value to calculate air drag. 2010-08-02 14:49:23 +00:00
michi_cc 811f0db597 (svn r20098) -Fix [FS#3898]: A train reversing in a station would sometimes fail to release its reserved path. 2010-07-09 14:14:17 +00:00
frosch e931399b31 (svn r20005) -Codechange: Enumify force_proceed. 2010-06-21 17:35:27 +00:00
terkhen a5f9a7c1a5 (svn r19342) -Codechange: Move inclination update functions to GroundVehicle. 2010-03-06 12:52:44 +00:00
terkhen 4e6cac84d6 (svn r19341) -Codechange: Move GOINGUP/GOINGDOWN flags to GroundVehicle.
-Codechange: Move GetSlopeResistance to GroundVehicle.
2010-03-06 12:50:55 +00:00
terkhen 07c373d60a (svn r19339) -Codechange: Move acceleration functions to GroundVehicle. 2010-03-06 12:44:30 +00:00
terkhen e4a5a556b4 (svn r19338) -Codechange: Move the acceleration cache to GroundVehicle. 2010-03-06 12:42:53 +00:00
terkhen f428102092 (svn r19337) -Codechange: Create the GroundVehicle class. 2010-03-06 12:41:18 +00:00
terkhen b5714c3597 (svn r19336) -Codechange: Move rail speed limit to its own function. 2010-03-06 12:27:23 +00:00
rubidium 7a73a7490d (svn r19090) -Codechange: some comment coding style fixes 2010-02-10 21:06:05 +00:00
peter1138 2b820780a1 (svn r18972) -Add: [NewGRF] Per-rail type speed limits. 2010-01-31 13:17:29 +00:00
terkhen 72f4bd818c (svn r18960) -Codechange: Move acceleration-related values to a separated cache. 2010-01-30 10:41:15 +00:00
terkhen d4376779f8 (svn r18939) -Codechange [FS#3545]: Move train slope steepness to its own function. 2010-01-28 20:54:29 +00:00
rubidium 23a8d2239f (svn r18854) -Codechange [FS#3539]: unconflict acceleration type as 'status' and rail property (Terhken) 2010-01-17 23:03:43 +00:00
rubidium 719fb9803c (svn r18838) -Codechange [FS#3524]: reorganisation of the train acceleration code plus some minor optimisations (Terkhen) 2010-01-16 22:30:04 +00:00