Xandros wrote:
MuadDib wrote:
This post is more for us devs, and to let people see what it is we may, or may not, be working on right now. If I miss something, don't be shy about letting me know to add it to the list.
Issue with GetconfigString (still valid for POL096-2006-05-24):
http://games.groups.yahoo.com/group/pol-core-test/message/12654
I looked into it. The problem comes from strtol() in the standard libraries.
When a config is first used with ReadConfigFile() it is read at that moment and setup in memory. It parses the values then and determines their type (double, long int, string) ... GetConfigString() just converts it to a string and internally it was read in as a number to begin with. This is hard to change because it could break '
cfgelem.Property' usages that always gave you the type automatically. Everything could be stored as a string, and if the .property usage was made on an elem, it then determines the type, but that would greatly slow down config file usage.
In the StrToL() function documentation it says...
Initial Chars
0x - Hex
0 - Octal
1-9 - Decimal
So I am guessing, you're getting an octal number.