summaryrefslogtreecommitdiff
path: root/src/vehicle_func.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-10-28 18:31:16 +0000
committerfrosch <frosch@openttd.org>2009-10-28 18:31:16 +0000
commit83894809d0bf63f5375cf546f3d353f5299a6442 (patch)
treee5bc6eae133e4d7d043c01575a691812798c353e /src/vehicle_func.h
parent2a3c797138b988a4c836215a8d98b8f85244c48e (diff)
downloadopenttd-83894809d0bf63f5375cf546f3d353f5299a6442.tar.xz
(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.
Diffstat (limited to 'src/vehicle_func.h')
-rw-r--r--src/vehicle_func.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle_func.h b/src/vehicle_func.h
index b2d4df70c..718feb426 100644
--- a/src/vehicle_func.h
+++ b/src/vehicle_func.h
@@ -112,6 +112,8 @@ SpriteID GetEnginePalette(EngineID engine_type, CompanyID company);
*/
SpriteID GetVehiclePalette(const Vehicle *v);
+uint GetVehicleCapacity(const Vehicle *v);
+
extern const uint32 _veh_build_proc_table[];
extern const uint32 _veh_sell_proc_table[];
extern const uint32 _veh_refit_proc_table[];