truebrain
d9f717dcfa
(svn r23714) -Codechange: don't mix Viewport with non-viewport code
2012-01-02 13:44:37 +00:00
truebrain
92c60447dc
(svn r23713) -Codechange: split VehicleMove() into two functions, to minimalize the work done where possible
2012-01-02 13:44:30 +00:00
truebrain
5f65e056e1
(svn r23712) -Codechange: rename the two vehicle hashes we have to names that make clear where they differ in
2012-01-02 12:07:50 +00:00
alberth
06597e684c
(svn r23704) -Doc: Doxygen comment fixes and additions.
2012-01-01 17:22:32 +00:00
truebrain
aa1a0053b0
(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
rubidium
00fc0d45b0
(svn r23594) -Codechange: follow coding style with multi line comments
2011-12-19 17:40:54 +00:00
smatz
36747f96a6
(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
2011-12-18 17:17:18 +00:00
frosch
dea03342aa
(svn r23502) -Fix (r23143): Vehicle var 42 used a cargo translation table of the wrong GRF.
2011-12-12 19:30:36 +00:00
michi_cc
3b45b41e68
(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
1138abad35
(svn r23104) -Codechange: prepare the vehicle/sign z for some further changes to reduce casting
2011-11-04 11:09:06 +00:00
frosch
6e61fee028
(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
frosch
ad38f27242
(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code.
2011-11-01 00:23:41 +00:00
frosch
e57ba5d0ae
(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.
2011-11-01 00:21:08 +00:00
michi_cc
1dcf0c5233
(svn r22997) -Feature: [NewGRF] Allow access to other vehicles in the vehicle chain in VarAction 2.
2011-10-04 21:35:29 +00:00
frosch
43053b59a2
(svn r22947) -Fix: [NewGRF] Do not call CB 32 for disaster, effect vehicles or aircraft shadows/rotors.
2011-09-19 19:23:23 +00:00
michi_cc
d25840978c
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
2011-08-03 20:55:08 +00:00
planetmaker
7aa57e4acd
(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added
2011-05-18 12:19:58 +00:00
alberth
a70556dac2
(svn r22459) -Doc: Typo fixes and doxygen markup improvements.
2011-05-14 18:35:40 +00:00
frosch
a296ccb74e
(svn r22327) -Add: Vehicle::GetGroundVehicleFlags() for accessing GroundVehicle<>::gv_flags through a Vehicle struct.
2011-04-16 16:41:02 +00:00
alberth
9af2feb993
(svn r21938) -Codechange: AfterLoadGame() is no longer friend of Vehicle.
2011-02-01 21:18:27 +00:00
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.
2011-01-31 20:44:15 +00:00
rubidium
c7939e8a63
(svn r21932) -Document: some tidbits related to vehicles
2011-01-31 20:27:33 +00:00
alberth
b5e2e83823
(svn r21930) -Codechange: Remove unused vehicle GetTypeString() functions.
2011-01-30 21:32:21 +00:00
alberth
5ef4317dd9
(svn r21925) -Doc: Doxygen additions and markup corrections to vehicle-related functions.
2011-01-29 21:37:11 +00:00
terkhen
0ac0bcfdf7
(svn r21923) -Codechange: Unify articulated vehicle iteration functions.
2011-01-29 17:27:32 +00:00
terkhen
b974d69988
(svn r21922) -Codechange: Unify articulated vehicle checking functions.
2011-01-29 17:26:23 +00:00
terkhen
14e0343d21
(svn r21921) -Codechange: Move GroundVehicleSubtypeFlags as they will be needed by some Vehicle functions.
2011-01-29 17:21:39 +00:00
rubidium
05199a641a
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
smatz
792659936e
(svn r21876) -Codechange: typedef SpecializedVehicleBase and GroundVehicleBase to reduce typing
2011-01-21 14:43:38 +00:00
rubidium
3dd1cf6049
(svn r21843) -Codechange: move documentation towards the code to make it more likely to be updates [t-z].
2011-01-18 21:58:22 +00:00
rubidium
da371c5776
(svn r21807) -Codechange: split automatic order removal into a separate function (fonsinchen)
2011-01-15 18:14:29 +00:00
peter1138
bf09d85f93
(svn r21709) -Fix (r8128): Vehicle sprite was cached into a 16 bit variable, causing incorrect sprites to be displayed.
2011-01-04 12:04:09 +00:00
rubidium
1446bfaac6
(svn r21644) -Change: keep showing "No orders" when the order list is filled with only automatic orders
2010-12-26 13:25:34 +00:00
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
2010-12-26 09:03:19 +00:00
terkhen
f7c4d35f67
(svn r21519) -Codechange: Allow direct access to the GroundVehicleCache from a Vehicle.
2010-12-14 21:31:00 +00:00
terkhen
47c9189002
(svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class.
2010-12-14 21:26:03 +00:00
rubidium
a4289a4e23
(svn r21508) -Codechange: move the code to handle the pathfinder's "path found" status to a separate function
2010-12-13 21:55:06 +00:00
rubidium
45344d48bb
(svn r21504) -Codechange: move the "lost" bit from the train's flags to vehicle flags
2010-12-13 21:52:39 +00:00
rubidium
d5bdeb3589
(svn r21466) -Codechange: make VehicleHasDepotOrders a function of Vehicle.
2010-12-11 13:48:30 +00:00
rubidium
aeae689dc4
(svn r21338) -Fix [FS#4272]: bogus cache mismatch warnings with desync debugging because some cache was invalidated but never reset
2010-11-27 21:09:41 +00:00
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)
2010-11-18 14:20:03 +00:00
rubidium
8ed1333952
(svn r21237) -Codechange: Move HandleLocomotiveSmokeCloud to Vehicle::ShowVisualEffect (Hirundo)
2010-11-18 14:15:27 +00:00
rubidium
5f4754f2db
(svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo)
2010-11-18 14:09:39 +00:00
rubidium
7a432a768b
(svn r21233) -Codechange: Introduce an enum to remove some magic numbers from the visual effect code (Hirundo)
2010-11-18 14:04:36 +00:00
rubidium
f1848b8614
(svn r21232) -Codechange: Move cached_vis_effect from the TrainCache to the VehicleCache (Hirundo)
2010-11-18 14:03:12 +00:00
terkhen
c7a2d1f883
(svn r21123) -Codechange: Remove max_speed from the Vehicle class.
2010-11-09 17:43:05 +00:00
terkhen
ca755e983c
(svn r21097) -Codechange: Unify cached max speed for all vehicle types.
2010-11-06 12:53:31 +00:00
terkhen
78e8a17729
(svn r21091) -Codechange: Add bit constants for checking NewGRFCache validity.
2010-11-06 12:39:18 +00:00
terkhen
36c5f3c97c
(svn r21090) -Codechange: Rename VehicleCache to NewGRFCache.
2010-11-06 12:37:55 +00:00
alberth
e5b817e99a
(svn r21088) -Doc: Additions/corrections of doxygen comments.
2010-11-05 16:34:22 +00:00