| 247 | } |
| 248 | |
| 249 | const void *ResolveObject(const GameSettings *settings_ptr, const IntSettingDesc *sd) |
| 250 | { |
| 251 | if (sd->flags.Test(SettingFlag::PerCompany)) { |
| 252 | if (Company::IsValidID(_local_company) && _game_mode != GM_MENU) { |
| 253 | return &Company::Get(_local_company)->settings; |
| 254 | } |
| 255 | return &_settings_client.company; |
| 256 | } |
| 257 | return settings_ptr; |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * Function to draw setting value (button + text + current value) |
no test coverage detected