diff options
author | peter1138 <peter1138@openttd.org> | 2006-06-04 18:22:32 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-06-04 18:22:32 +0000 |
commit | 5e3dd8dd7852e2b4e5ae48eebc7472e73d1f7009 (patch) | |
tree | 06c53940c7ff507159a1ceb550728d33cea2dbd5 /engine.h | |
parent | 0a623bc333a54dba04271399b5d73a09498df8b2 (diff) | |
download | openttd-5e3dd8dd7852e2b4e5ae48eebc7472e73d1f7009.tar.xz |
(svn r5105) - NewGRF: Move callbackmask from *VehicleInfo to EngineInfo. This simplifies code that works with more than one vehicle type.
Diffstat (limited to 'engine.h')
-rw-r--r-- | engine.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -21,7 +21,6 @@ typedef struct RailVehicleInfo { byte capacity; CargoID cargo_type; byte ai_rank; - byte callbackmask; // see CallbackMask enum uint16 pow_wag_power; byte pow_wag_weight; byte visual_effect; // NOTE: this is not 100% implemented yet, at the moment it is only used as a 'fallback' value @@ -41,7 +40,6 @@ typedef struct ShipVehicleInfo { byte running_cost; byte sfx; byte refittable; - byte callbackmask; } ShipVehicleInfo; typedef struct AircraftVehicleInfo { @@ -54,7 +52,6 @@ typedef struct AircraftVehicleInfo { byte max_speed; byte mail_capacity; uint16 passenger_capacity; - byte callbackmask; } AircraftVehicleInfo; typedef struct RoadVehicleInfo { @@ -65,7 +62,6 @@ typedef struct RoadVehicleInfo { byte max_speed; byte capacity; CargoID cargo_type; - byte callbackmask; } RoadVehicleInfo; /** Information about a vehicle @@ -80,6 +76,7 @@ typedef struct EngineInfo { byte climates:4; uint32 refit_mask; byte misc_flags; + byte callbackmask; } EngineInfo; typedef struct Engine { |