summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-18 21:44:47 +0000
committerrubidium <rubidium@openttd.org>2007-06-18 21:44:47 +0000
commit23727da96f66d7df800cc5aa70d05abce8002d79 (patch)
tree56cef93f015d710536a1801fe14c3095d290a172 /src/vehicle.h
parent7dda2d93da840519f1388d0191a00362ff97feb6 (diff)
downloadopenttd-23727da96f66d7df800cc5aa70d05abce8002d79.tar.xz
(svn r10208) -Codechange: replace int32 with Money where appropriate.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index f9103c930..549e04e11 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -312,11 +312,11 @@ struct Vehicle {
uint16 cargo_paid_for; // How much of the cargo currently on board has been paid for.
byte vehicle_flags; // Used for gradual loading and other miscellaneous things (@see VehicleFlags enum)
- int32 profit_this_year;
- int32 profit_last_year;
- int32 cargo_feeder_share; ///< value of feeder pickup to be paid for on delivery of cargo
+ Money profit_this_year;
+ Money profit_last_year;
+ Money cargo_feeder_share; ///< value of feeder pickup to be paid for on delivery of cargo
TileIndex cargo_loaded_at_xy; ///< tile index where feeder cargo was loaded
- uint32 value;
+ Money value;
GroupID group_id; ///< Index of group Pool array
@@ -548,7 +548,7 @@ UnitID GetFreeUnitNumber(VehicleType type);
void TrainConsistChanged(Vehicle *v);
void TrainPowerChanged(Vehicle *v);
-int32 GetTrainRunningCost(const Vehicle *v);
+Money GetTrainRunningCost(const Vehicle *v);
int CheckTrainStoppedInDepot(const Vehicle *v);