summaryrefslogtreecommitdiff
path: root/src/group.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-03-29 23:24:40 +0000
committerMichael Lutz <michi@icosahedron.de>2021-04-22 22:57:00 +0200
commit27a956ba6204e400e82fe10056bf730f286b23fe (patch)
tree7009ae20df0ecf558696f420e0ee6124774a5ba6 /src/group.h
parent37222c3fa2f558df5f7ef420ad583ba403ceda62 (diff)
downloadopenttd-27a956ba6204e400e82fe10056bf730f286b23fe.tar.xz
Codechange: Replace Group::replace_protection with Group::flags
Diffstat (limited to 'src/group.h')
-rw-r--r--src/group.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/group.h b/src/group.h
index 1be8d8b01..57d15b448 100644
--- a/src/group.h
+++ b/src/group.h
@@ -62,13 +62,17 @@ struct GroupStatistics {
static void UpdateAutoreplace(CompanyID company);
};
+enum GroupFlags : uint8 {
+ GF_REPLACE_PROTECTION, ///< If set to true, the global autoreplace has no effect on the group
+};
+
/** Group data. */
struct Group : GroupPool::PoolItem<&_group_pool> {
std::string name; ///< Group Name
Owner owner; ///< Group Owner
VehicleType vehicle_type; ///< Vehicle type of the group
- bool replace_protection; ///< If set to true, the global autoreplace have no effect on the group
+ uint8 flags; ///< Group flags
Livery livery; ///< Custom colour scheme for vehicles in this group
GroupStatistics statistics; ///< NOSAVE: Statistics and caches on the vehicles in the group.