[fixed]Random Floats.

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
solarsnowfall
Persecution Complex
Posts: 363
Joined: Fri Aug 05, 2005 8:51

[fixed]Random Floats.

Post 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.
User avatar
solarsnowfall
Persecution Complex
Posts: 363
Joined: Fri Aug 05, 2005 8:51

Post 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.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Randy changed the random number code for ACS recently. Apparently there's a bug in there.
User avatar
solarsnowfall
Persecution Complex
Posts: 363
Joined: Fri Aug 05, 2005 8:51

Post 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?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Don't bother. I intend to check this today so it doesn't matter where it has been reported
User avatar
solarsnowfall
Persecution Complex
Posts: 363
Joined: Fri Aug 05, 2005 8:51

Post by solarsnowfall »

Phew! :smoker:
Locked

Return to “Closed Bugs”