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

Function CompanyCanEditSign

src/signs.cpp:62–66  ·  view source on GitHub ↗

* Check if the current company can rename or move a given sign. * @param *si The sign in question. * @return true if the sign can be renamed or moved, else false. */

Source from the content-addressed store, hash-verified

60 * @return true if the sign can be renamed or moved, else false.
61 */
62bool CompanyCanEditSign(const Sign *si)
63{
64 if (si->owner == OWNER_DEITY && _current_company != OWNER_DEITY && _game_mode != GM_EDITOR) return false;
65 return true;
66}

Callers 3

HandleClickOnSignFunction · 0.85
CmdRenameSignFunction · 0.85
CmdMoveSignFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected