mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 09:59:10 +00:00
(svn r24500) -Fix: Don't show the global goals as company goals for spectators
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user