From e8c1be6f9e4c898bf62013a07cf05bb2f5d0ee59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Sun, 9 Jun 2024 18:11:17 +0200 Subject: [PATCH] More cargo --- src/table/engines.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/table/engines.h b/src/table/engines.h index b1b38f188e..9c9833e78d 100644 --- a/src/table/engines.h +++ b/src/table/engines.h @@ -10,6 +10,8 @@ * This file contains all the data for vehicles */ +#define SPEEDY_FACTOR 1.5 + #ifndef ENGINES_H #define ENGINES_H @@ -386,7 +388,7 @@ static const EngineInfo _orig_engine_info[] = { * Tractive effort coefficient by default is the same as TTDPatch, 0.30*256=76 * Air drag value depends on the top speed of the vehicle. */ -#define RVI(a, b, c, d, e, f, g, h, i, j, k) { a, b, c, j, j, d, e, f, g, h, k, i, 0, 0, 0, VE_DEFAULT, 0, 76, 0, 0, 0 } +#define RVI(a, b, c, d, e, f, g, h, i, j, k) { a, b, c, j, j, d * SPEEDY_FACTOR, e * SPEEDY_FACTOR, f, g, h, k, i, 0, 0, 0, VE_DEFAULT, 0, 76, 0, 0, 0 } #define M RAILVEH_MULTIHEAD #define W RAILVEH_WAGON #define G RAILVEH_SINGLEHEAD @@ -564,7 +566,7 @@ static const RailVehicleInfo _orig_rail_vehicle_info[] = { * @param g sound effect * @param h refittable */ -#define SVI(a, b, c, d, e, f, g, h) { a, b, c, d, e, f, g, h, VE_DEFAULT, 0, 0 } +#define SVI(a, b, c, d, e, f, g, h) { a, b, c * SPEEDY_FACTOR, d * SPEEDY_FACTOR, e, f, g, h, VE_DEFAULT, 0, 0 } static const ShipVehicleInfo _orig_ship_vehicle_info[] = { /* image_index max_speed sfx refittable * | cost_factor capacity | | @@ -597,7 +599,7 @@ static const ShipVehicleInfo _orig_ship_vehicle_info[] = { * @param h mail_capacity (bags) * @param i passenger_capacity (persons) */ -#define AVI(a, b, c, d, e, f, g, h, i) { a, b, c, d, e, f, (g * 128) / 10, h, i, 0 } +#define AVI(a, b, c, d, e, f, g, h, i) { a, b, c, d, e, f * SPEEDY_FACTOR, ((g * 128) / 10) * SPEEDY_FACTOR, h, i, 0 } #define H AIR_HELI #define P AIR_CTOL #define J AIR_CTOL | AIR_FAST @@ -668,7 +670,7 @@ static const AircraftVehicleInfo _orig_aircraft_vehicle_info[] = { * Tractive effort coefficient by default is the same as TTDPatch, 0.30*256=76 * Air drag value depends on the top speed of the vehicle. */ -#define ROV(a, b, c, d, e, f, g, h) { a, b, c, PR_RUNNING_ROADVEH, d, e, f, g, h, 76, 0, VE_DEFAULT, 0, ROADTYPE_ROAD } +#define ROV(a, b, c, d, e, f, g, h) { a, b, c, PR_RUNNING_ROADVEH, d, e * SPEEDY_FACTOR, f, g, h * SPEEDY_FACTOR, 76, 0, VE_DEFAULT, 0, ROADTYPE_ROAD } static const RoadVehicleInfo _orig_road_vehicle_info[] = { /* image_index sfx max_speed power * | cost_factor | | capacity |