View Single Post
  #1  
Old 01-25-2005, 05:00 PM
Arkan1k Arkan1k is offline
Delph
Join Date: Feb 2004
Location: Melbourne, Australia
Posts: 35
Arkan1k is on a distinguished road
Send a message via AIM to Arkan1k Send a message via MSN to Arkan1k
Exclamation Floating Point Bug

I know in newfeatures you said you fixed something to do with the floating point so it works with the Kingdoms item sorting.
Now, in any script any zeros directly trailing the decimal point are removed.
For example:
NPC Code:
if (created||timeout) {
disabledefmovement;
if (keydown(0)) val += 0.005;
elseif (keydown(2)) val -= 0.005;
setplayerprop #c,#v(val);
timeout = 0.05;
}



Place this in a level script and tap up or down. You will notice that when there should be zeros trailing the decimal place, they aren't there.

Values in 0.05 increments that I am using in scripts now have small glitches or jumps when the movement of the object should otherwise be smooth.
I'd say this is a rather big problem for the new client.
__________________
[ Delph ]
Reply With Quote