[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kstars-devel
Subject:    [Kstars-devel] branches/kstars/summer/kdeedu/kstars/kstars/data
From:       Akarsh Simha <akarshsimha () gmail ! com>
Date:       2008-07-09 0:37:08
Message-ID: 1215563828.885850.28420.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 829747 by asimha:

Fix error in reporting of limiting magnitude of shallow star data.

CCMAIL: kstars-devel@kde.org



 M             shallowstars.dat  
 M  +3 -3      tools/mysql2bin.c  


--- branches/kstars/summer/kdeedu/kstars/kstars/data/tools/mysql2bin.c #829746:829747
@@ -459,8 +459,8 @@
   writeIndexEntry(namefile, FIRST_TRIXEL, ftell(namefile) + INDEX_ENTRY_SIZE, 0);
 
   /* Leave space for / write a deep magnitude limit specification in the data files */
-  maglim = (int)(8.00 * 100);
-  fwrite(&maglim, 2, 1, nsf);
+  maglim = GLOBAL_MAG_LIMIT * 100;
+  fwrite(&maglim, 2, 1, nsf); // This is also a bogus entry, because it will be overwritten later
   maglim = (int)(-5.0 * 100);
   fwrite(&maglim, 2, 1, usf); // Bogus entry
 
@@ -638,7 +638,7 @@
   rewind(usf);
   rewind(nsf);
   fwrite(&maglim, 2, 1, usf);
-  maglim = 8.0;
+  maglim = GLOBAL_MAG_LIMIT * 100;
   fwrite(&maglim, 2, 1, nsf);
   fwrite(&htm_level, 1, 1, usf);
   fwrite(&htm_level, 1, 1, nsf);
_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic