summaryrefslogtreecommitdiff
path: root/src/company_func.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-01 17:45:53 +0000
committeralberth <alberth@openttd.org>2010-08-01 17:45:53 +0000
commitdc6ed2c2c02a651a50b2d2b232302d0c7eab48ec (patch)
tree29a7c1aa361bf156c083f5d295bf973da8867db9 /src/company_func.h
parent2d25def2ff7617a4f800d16eacce704395d962cf (diff)
downloadopenttd-dc6ed2c2c02a651a50b2d2b232302d0c7eab48ec.tar.xz
(svn r20279) -Doc: Doxygen additions/improvements.
Diffstat (limited to 'src/company_func.h')
-rw-r--r--src/company_func.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/company_func.h b/src/company_func.h
index 8dcdffbe8..6fcf348f5 100644
--- a/src/company_func.h
+++ b/src/company_func.h
@@ -24,8 +24,8 @@ void ShowBuyCompanyDialog(CompanyID company);
extern CompanyByte _local_company;
extern CompanyByte _current_company;
-extern Colours _company_colours[MAX_COMPANIES]; ///< NOSAVE: can be determined from company structs
-extern CompanyManagerFace _company_manager_face; ///< for company manager face storage in openttd.cfg
+extern Colours _company_colours[MAX_COMPANIES];
+extern CompanyManagerFace _company_manager_face;
/**
* Is the current company the local company?
@@ -36,6 +36,11 @@ static inline bool IsLocalCompany()
return _local_company == _current_company;
}
+/**
+ * Is the user representing \a company?
+ * @param company Company where interaction is needed with.
+ * @return Gives \c true if the user can answer questions interactively as representative of \a company, else \c false
+ */
static inline bool IsInteractiveCompany(CompanyID company)
{
return company == _local_company;