Strange Float Screwup

Blitz3D Forums/Blitz3D Programming/Strange Float Screwup

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Simple, change DayNight to be an integer like so ..

While Not KeyDown(1)

	DayNight = ( DayNight + 1 ) Mod 400
	COLORinterpolate( DayNight / 100.0 , 64,255,64, 64,64,255, 255,64,64, 255,64,255 )

	AmbientLight aR, aG, aB
	RenderWorld()
	
	Text 0,0, ar + " "+ ag + " " + ab
	
	Flip

Wend