summaryrefslogtreecommitdiff
path: root/src/company_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-10-15 20:42:32 +0000
committerrubidium <rubidium@openttd.org>2011-10-15 20:42:32 +0000
commitde27205e6c8aec594f7ae3b8205e8a1d60c24751 (patch)
tree84a180f9001812109677d95c57ee446178dada0d /src/company_type.h
parent16e1314f58fa96915d79ca8419465ab2e5e8639e (diff)
downloadopenttd-de27205e6c8aec594f7ae3b8205e8a1d60c24751.tar.xz
(svn r23031) -Fix [FS#4804]: for the admin "bots" there was no distinction between bankruptcy and manual removal of companies even though the API suggested that
Diffstat (limited to 'src/company_type.h')
-rw-r--r--src/company_type.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/company_type.h b/src/company_type.h
index aa73abe63..249cce7d1 100644
--- a/src/company_type.h
+++ b/src/company_type.h
@@ -54,4 +54,13 @@ typedef uint16 CompanyMask;
struct Company;
typedef uint32 CompanyManagerFace; ///< Company manager face bits, info see in company_manager_face.h
+/** The reason why the company was removed. */
+enum CompanyRemoveReason {
+ CRR_MANUAL, ///< The company is manually removed.
+ CRR_AUTOCLEAN, ///< The company is removed due to autoclean.
+ CRR_BANKRUPT, ///< The company went belly-up.
+
+ CRR_END ///< Sentinel for end.
+};
+
#endif /* COMPANY_TYPE_H */