PDA

View Full Version : don't limit integers to 4 digits



Master_of_Power
12-18-2006, 05:43 PM
T20: Truncation of constant x.

Both floats and ints can only be specified to four places of decimal precision. Any extra digits are simply ignored by the compiler, which then issues this warning.


When changing enemy tiles via the script editor, this becomes very limited to us because we can only choose from 0-9999 tiles. If possible can you add 2 more digits to floats and integers?

Saffith
12-18-2006, 06:00 PM
There are 18 bits devoted to the integral part of each number, which allows a range of 0-262143. One more digit is possible, certainly, but six-digit numbers would be limited to that range.
Still, I don't think there's any reason that couldn't be done.