Mercurial > hg > openttd
diff src/settings_gui.cpp @ 12067:43d8d69b7a31 draft
(svn r16474) -Fix [FS#2933]: could set company related settings via query window
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 31 May 2009 09:31:56 +0000 (2009-05-31) |
parents | ca8b215793c4 |
children | abcb7c9c1d4d |
line wrap: on
line diff
--- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1541,7 +1541,11 @@ /* Save the correct currency-translated value */ 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(); } }