aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-11 17:48:09 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-11 17:48:09 +0000
commitb3479c3144734aab45db7fcb0ae84f5cb6dbb1c6 (patch)
tree10839bde185de40b11b1ca09c54b9762f1b6621b /Game
parent15f7d655c6b64a0990997eed466b370809ac6683 (diff)
downloadusdx-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
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UMain.pas4
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 := '.';
//------------------------------