changeset 15116:aaaa44870ac4 draft

(svn r19745) -Fix: The GUI is controlled by _local_company, not _current_company.
author frosch <frosch@openttd.org>
date Sat, 01 May 2010 14:20:56 +0000
parents a93503fec8db
children 62df3f6650e2
files src/viewport.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1776,7 +1776,7 @@
 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) {