pkgsrc/x11/xglobe/patches/patch-ac
hubertf ec892645ac Update to version 0.5. Changes:
- added -outfile command line switch
- added -rot command line switch by Andrew Sumner:
- implemented cloud map rendering (-cloudmapfile and -cloudfilter switches)
  (see README.maps for details)

For NetBSD 1.4.x, (s)rand() was replaced by (s)random() to get a better
image of stars. Thanks a lot to Marcello Balduccini <marcy@cs.utep.edu>
for the hint!
2000-04-03 03:24:47 +00:00

24 lines
755 B
Text

$NetBSD: patch-ac,v 1.1 2000/04/03 03:24:48 hubertf Exp $
--- earthapp.cpp.orig Mon Apr 3 05:07:30 2000
+++ earthapp.cpp Mon Apr 3 05:08:24 2000
@@ -371,7 +371,7 @@
if(strncmp(argv()[i], "random", 6) == 0)
{
p_type = RANDOM;
- srand((int)time(NULL) + (int)getpid());
+ srandom((int)time(NULL) + (int)getpid());
return;
}
else if(strncmp(argv()[i], "fixed", 5) == 0)
@@ -937,8 +937,8 @@
void EarthApplication::randomPosition()
{
- view_lat = ((rand()%30001)/30000.)*180. - 90.;
- view_long = ((rand()%30001)/30000.)*360. - 180.;
+ view_lat = ((random()%30001)/30000.)*180. - 90.;
+ view_long = ((random()%30001)/30000.)*360. - 180.;
}
/* ------------------------------------------------------------------------*/