3 bits - to represent x (0 to 7)
3 bits - to represent y (0 to 7) */
-long int fgBucketGenIndex(fgBUCKET *p) {
+long int fgBucketGenIndex( const fgBUCKET *p) {
long index = 0;
index = ((p->lon + 180) << 14) + ((p->lat + 90) << 6) + (p->y << 3) + p->x;
/* Build a path name from an tile index */
-void fgBucketGenBasePath(fgBUCKET *p, char *path) {
+void fgBucketGenBasePath( const fgBUCKET *p, char *path) {
long int index;
int top_lon, top_lat, main_lon, main_lat;
char hem, pole;
/* $Log$
-/* Revision 1.3 1998/07/04 00:46:47 curt
-/* typedef'd struct fgBUCKET.
+/* Revision 1.4 1998/12/07 21:08:01 curt
+/* Added a const in a couple places to get rid of annoying compiler warnings.
/*
+ * Revision 1.3 1998/07/04 00:46:47 curt
+ * typedef'd struct fgBUCKET.
+ *
* Revision 1.2 1998/04/25 22:06:22 curt
* Edited cvs log messages in source files ... bad bad bad!
*
3 bits - to represent x (0 to 7)
3 bits - to represent y (0 to 7) */
-long int fgBucketGenIndex(fgBUCKET *p);
+long int fgBucketGenIndex( const fgBUCKET *p);
/* Parse a unique scenery tile index and find the lon, lat, x, and y */
/* Build a path name from an tile index */
-void fgBucketGenBasePath(fgBUCKET *p, char *path);
+void fgBucketGenBasePath( const fgBUCKET *p, char *path);
/* offset an bucket struct by the specified amounts in the X & Y direction */
/* $Log$
-/* Revision 1.2 1998/07/04 00:46:48 curt
-/* typedef'd struct fgBUCKET.
+/* Revision 1.3 1998/12/07 21:08:03 curt
+/* Added a const in a couple places to get rid of annoying compiler warnings.
/*
+ * Revision 1.2 1998/07/04 00:46:48 curt
+ * typedef'd struct fgBUCKET.
+ *
* Revision 1.1 1998/04/08 23:28:59 curt
* Adopted Gnu automake/autoconf system.
*