Page 1 of 1
[fixed]Random Floats.
Posted: Sat May 13, 2006 2:26
by solarsnowfall
Code: Select all
Script 1 OPEN
{
print(d:random(-64.0, 64.0) / 1.0);
delay(35);
restart;
}
I suspect this is a general ZDoom issue. In 96x it will print random numbers between -64 and 64. In the latest version it will print wild numbers eg -168.
Posted: Sat May 13, 2006 20:19
by solarsnowfall
Ok it doesn't seem to do this in 96x or 98, only in GZDoom. And I've gotten it to print up to -/+190.
Posted: Sat May 13, 2006 21:10
by Graf Zahl
Randy changed the random number code for ACS recently. Apparently there's a bug in there.
Posted: Sat May 13, 2006 21:23
by solarsnowfall
I just installed 98 over 96x and ran the wad, I don't see the problem happening here. So if I make a bug report at ZDoom.org should I note that it's from the SVN version?
Posted: Sat May 13, 2006 21:34
by Graf Zahl
Don't bother. I intend to check this today so it doesn't matter where it has been reported
Posted: Sat May 13, 2006 23:20
by solarsnowfall
Phew!
