From b3479c3144734aab45db7fcb0ae84f5cb6dbb1c6 Mon Sep 17 00:00:00 2001 From: tobigun Date: Mon, 11 Aug 2008 17:48:09 +0000 Subject: 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 --- Game/Code/Classes/UMain.pas | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Game') 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 := '.'; //------------------------------ -- cgit v1.2.3