mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
(svn r16638) [0.7] -Backport from trunk:
- Fix: Loading of some town data from old savegames was broken (r16631) - Fix: [NewGRF] Some of the var action 2 80+ variables contained wrong values from NewGRF perspective (r16615, r16613) - Fix: Antialiased fonts broken; check pixel_mode instead of palette_mode (r16602) - Fix: Give a more meaningful error message when console commands expect an integer but do not get one (r16600)
This commit is contained in:
+6
-1
@@ -2153,7 +2153,12 @@ void IConsoleSetSetting(const char *name, const char *value)
|
||||
uint32 val;
|
||||
extern bool GetArgumentInteger(uint32 *value, const char *arg);
|
||||
success = GetArgumentInteger(&val, value);
|
||||
if (success) success = SetSettingValue(index, val);
|
||||
if (!success) {
|
||||
IConsolePrintF(CC_ERROR, "'%s' is not an integer.", value);
|
||||
return;
|
||||
}
|
||||
|
||||
success = SetSettingValue(index, val);
|
||||
}
|
||||
|
||||
if (!success) {
|
||||
|
||||
Reference in New Issue
Block a user