summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-01-22 13:54:02 +0000
committerfrosch <frosch@openttd.org>2012-01-22 13:54:02 +0000
commit5bf1710a28021f7eef8dcc91cbfe08dd1ad0c215 (patch)
treecfeedeaa0ef1f8efa0fd2442fec3ac9f591db3b2 /src/viewport.cpp
parentb9192ac432bf915d3020c6d23e6368903b805061 (diff)
downloadopenttd-5bf1710a28021f7eef8dcc91cbfe08dd1ad0c215.tar.xz
(svn r23835) -Change [FS#4999]: Make signs placed in scenario editor belong to the GS. That way they are always shown in game and are not editable.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 2388443d0..2f134056f 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1872,8 +1872,8 @@ static bool CheckClickOnSign(const ViewPort *vp, int x, int y)
const Sign *si;
FOR_ALL_SIGNS(si) {
/* If competitor signs are hidden, don't check signs that aren't owned by local company */
- if (!HasBit(_display_opt, DO_SHOW_COMPETITOR_SIGNS) && _local_company != si->owner) continue;
- if (si->owner == OWNER_DEITY) continue;
+ if (!HasBit(_display_opt, DO_SHOW_COMPETITOR_SIGNS) && _local_company != si->owner && si->owner != OWNER_DEITY) continue;
+ if (si->owner == OWNER_DEITY && _game_mode != GM_EDITOR) continue;
if (CheckClickOnViewportSign(vp, x, y, &si->sign)) {
HandleClickOnSign(si);