diff options
author | rubidium <rubidium@openttd.org> | 2009-01-03 17:28:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-03 17:28:22 +0000 |
commit | 11c25a72faad2d3d9aa72dbf130e4478b16e979d (patch) | |
tree | 40cfa11833b46971e1e5787f6a5e5fdea12bb074 /src/order_base.h | |
parent | afef22e3e7caeb41d94115bfd000b4cce68e430d (diff) | |
download | openttd-11c25a72faad2d3d9aa72dbf130e4478b16e979d.tar.xz |
(svn r14813) -Codechange: use uint instead of 'just' unsigned.
Diffstat (limited to 'src/order_base.h')
-rw-r--r-- | src/order_base.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/order_base.h b/src/order_base.h index bb02ec103..b7c01282d 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -263,10 +263,10 @@ private: Order *first; ///< First order of the order list VehicleOrderID num_orders; ///< NOSAVE: How many orders there are in the list - unsigned num_vehicles; ///< NOSAVE: Number of vehicles that share this order list + uint num_vehicles; ///< NOSAVE: Number of vehicles that share this order list Vehicle *first_shared; ///< NOSAVE: pointer to the first vehicle in the shared order chain - unsigned timetable_duration; ///< NOSAVE: Total duration of the order list + uint timetable_duration; ///< NOSAVE: Total duration of the order list public: /** Default constructor producing an invalid order list. */ @@ -344,7 +344,7 @@ public: * Return the number of vehicles that share this orders list * @return the count of vehicles that use this shared orders list */ - inline unsigned GetNumVehicles() const { return this->num_vehicles; } + inline uint GetNumVehicles() const { return this->num_vehicles; } /** * Checks whether a vehicle is part of the shared vehicle chain. @@ -384,7 +384,7 @@ public: * Gets the total duration of the vehicles timetable or -1 is the timetable is not complete. * @return total timetable duration or -1 for incomplete timetables */ - inline int GetTimetableTotalDuration() const { return this->IsCompleteTimetable() ? this->timetable_duration : -1; } + inline int GetTimetableTotalDuration() const { return this->IsCompleteTimetable() ? (int)this->timetable_duration : -1; } /** * Gets the known duration of the vehicles timetable even if the timetable is not complete. |