MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetCompanyManagerFaceSpec

Function GetCompanyManagerFaceSpec

src/company_cmd.cpp:1398–1402  ·  view source on GitHub ↗

* Get the definition of a company manager face style. * @param style_index Face style to get. * @return Definition of face style. */

Source from the content-addressed store, hash-verified

1396 * @return Definition of face style.
1397 */
1398const FaceSpec *GetCompanyManagerFaceSpec(uint style_index)
1399{
1400 if (style_index < GetNumCompanyManagerFaceStyles()) return &_faces[style_index];
1401 return nullptr;
1402}
1403
1404/**
1405 * Find a company manager face style by label.

Callers 3

Calls 1

Tested by

no test coverage detected