diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:59:29 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:59:29 +0000 |
commit | e7cd301d3c9990b4ef9f0748789bb5e0318c0d24 (patch) | |
tree | 6be6c3a41b29a52a74a289293a012e7167f48884 /src/signs_cmd.cpp | |
parent | afcf07ac8a0d5adede1b412600042a9f3b482648 (diff) | |
download | openttd-e7cd301d3c9990b4ef9f0748789bb5e0318c0d24.tar.xz |
(svn r23621) -Add: allow manipulation of signs via GameScripts
Diffstat (limited to 'src/signs_cmd.cpp')
-rw-r--r-- | src/signs_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/signs_cmd.cpp b/src/signs_cmd.cpp index 80d399ae9..033ddf123 100644 --- a/src/signs_cmd.cpp +++ b/src/signs_cmd.cpp @@ -78,6 +78,7 @@ CommandCost CmdRenameSign(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 { Sign *si = Sign::GetIfValid(p1); if (si == NULL) return CMD_ERROR; + if (si->owner == OWNER_DEITY && _current_company != OWNER_DEITY) return CMD_ERROR; /* Rename the signs when empty, otherwise remove it */ if (!StrEmpty(text)) { |