fix a off-by-one
This commit is contained in:
@@ -29,7 +29,7 @@ subroutine do_starfield (nbstar)
|
|||||||
integer, intent(in) :: nbstar
|
integer, intent(in) :: nbstar
|
||||||
integer idx, color
|
integer idx, color
|
||||||
real px, py, sz
|
real px, py, sz
|
||||||
do idx=0, nbstar
|
do idx=1, nbstar
|
||||||
px = (rand(0) * 10.00) - 5.00
|
px = (rand(0) * 10.00) - 5.00
|
||||||
py = (rand(0) * 10.00) - 5.00
|
py = (rand(0) * 10.00) - 5.00
|
||||||
sz = (rand(0) * 0.16) + 0.16
|
sz = (rand(0) * 0.16) + 0.16
|
||||||
|
|||||||
Reference in New Issue
Block a user