mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r24500) -Fix: Don't show the global goals as company goals for spectators
This commit is contained in:
parent
43194537d4
commit
403cf9246e
|
@ -190,7 +190,7 @@ struct GoalListWindow : Window {
|
||||||
num = 0;
|
num = 0;
|
||||||
|
|
||||||
FOR_ALL_GOALS(s) {
|
FOR_ALL_GOALS(s) {
|
||||||
if (s->company == _local_company) {
|
if (s->company == _local_company && s->company != INVALID_COMPANY) {
|
||||||
if (IsInsideMM(pos, 0, cap)) {
|
if (IsInsideMM(pos, 0, cap)) {
|
||||||
/* Display the goal */
|
/* Display the goal */
|
||||||
SetDParamStr(0, s->text);
|
SetDParamStr(0, s->text);
|
||||||
|
|
Loading…
Reference in New Issue