summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-05-01 14:20:56 +0000
committerfrosch <frosch@openttd.org>2010-05-01 14:20:56 +0000
commit7563432119660a13ce47fc8779cef4da156c4bcd (patch)
tree33cb7e8434a850e77ab549ffdc0ee69e5a5d737d
parent910aade284ef2b3212663c81f4e15e77b1c7120d (diff)
downloadopenttd-7563432119660a13ce47fc8779cef4da156c4bcd.tar.xz
(svn r19745) -Fix: The GUI is controlled by _local_company, not _current_company.
-rw-r--r--src/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 18999d341..02b22ecc9 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1776,7 +1776,7 @@ static bool CheckClickOnStation(const ViewPort *vp, int x, int y)
static bool CheckClickOnSign(const ViewPort *vp, int x, int y)
{
/* Signs are turned off, or they are transparent and invisibility is ON, or company is a spectator */
- if (!HasBit(_display_opt, DO_SHOW_SIGNS) || IsInvisibilitySet(TO_SIGNS) || _current_company == COMPANY_SPECTATOR) return false;
+ if (!HasBit(_display_opt, DO_SHOW_SIGNS) || IsInvisibilitySet(TO_SIGNS) || _local_company == COMPANY_SPECTATOR) return false;
const Sign *si;
FOR_ALL_SIGNS(si) {