mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
(svn r16474) -Fix [FS#2933]: could set company related settings via query window
This commit is contained in:
@@ -1541,7 +1541,11 @@ struct GameSettingsWindow : Window {
|
|||||||
/* Save the correct currency-translated value */
|
/* Save the correct currency-translated value */
|
||||||
if (sd->desc.flags & SGF_CURRENCY) value /= _currency->rate;
|
if (sd->desc.flags & SGF_CURRENCY) value /= _currency->rate;
|
||||||
|
|
||||||
SetSettingValue(this->valuewindow_entry->d.entry.index, value);
|
if ((sd->desc.flags & SGF_PER_COMPANY) != 0) {
|
||||||
|
SetCompanySetting(this->valuewindow_entry->d.entry.index, value);
|
||||||
|
} else {
|
||||||
|
SetSettingValue(this->valuewindow_entry->d.entry.index, value);
|
||||||
|
}
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user