diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-11 17:48:09 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-11 17:48:09 +0000 |
commit | b3479c3144734aab45db7fcb0ae84f5cb6dbb1c6 (patch) | |
tree | 10839bde185de40b11b1ca09c54b9762f1b6621b | |
parent | 15f7d655c6b64a0990997eed466b370809ac6683 (diff) | |
download | usdx-b3479c3144734aab45db7fcb0ae84f5cb6dbb1c6.tar.gz usdx-b3479c3144734aab45db7fcb0ae84f5cb6dbb1c6.tar.xz usdx-b3479c3144734aab45db7fcb0ae84f5cb6dbb1c6.zip |
workaround for a bug in FPC 2.2.2. ThousandSeparator must be set, otherwise TIniFile.ReadFloat will not work in windows.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1253 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r-- | Game/Code/Classes/UMain.pas | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Game/Code/Classes/UMain.pas b/Game/Code/Classes/UMain.pas index cb23830e..82456072 100644 --- a/Game/Code/Classes/UMain.pas +++ b/Game/Code/Classes/UMain.pas @@ -157,6 +157,10 @@ begin DisableFloatingPointExceptions(); // fix the locale for string-to-float parsing in C-libs SetDefaultNumericLocale(); + + // setup separators for parsing + // Note: ThousandSeparator must be set because of a bug in TIniFile.ReadFloat + ThousandSeparator := ','; DecimalSeparator := '.'; //------------------------------ |