(svn r24500) -Fix: Don't show the global goals as company goals for spectators

This commit is contained in:
zuu
2012-08-27 20:37:20 +00:00
parent 825fc47d1d
commit 57cc5a3336

View File

@@ -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);