Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.