#define FG_SQUARE( X ) ( (X) * (X) )
-#ifdef WIN32
-# define FG_MEM_COPY(to,from,n) memcpy(to, from, n)
+#if defined(USE_MEM) || defined(WIN32)
+# define FG_MEM_COPY(to,from,n) memcpy(to, from, n)
#else
-# define FG_MEM_COPY(to,from,n) bcopy(from, to, n)
+# define FG_MEM_COPY(to,from,n) bcopy(from, to, n)
#endif
// closest (potentially viewable) tiles, centered on current tile.
scenery.next_center = t->center;
- // earth_center = Point3D(0.0, 0.0, 0.0);
-
FG_LOG( FG_TERRAIN, FG_DEBUG,
"Current bucket = " << p << " Index = " << fgBucketGenIndex(&p) );
+ FG_LOG( FG_TERRAIN, FG_DEBUG,
+ "abs_view_pos = " << abs_view_pos );
// calculate tile offset
// x = (t->offset.x = t->center.x - scenery.center.x);
}
}
- cout << "no terrain intersection found\n";
+ cout << "(new) no terrain intersection found\n";
return 0.0;
}
}
}
- cout << "no terrain intersection found\n";
+ cout << "(old) no terrain intersection found\n";
return 0.0;
}
// the chunk isn't already in the cache, then read it from disk.
int fgTileMgrUpdate( void ) {
fgTILECACHE *c;
- fgFLIGHT *f;
+ FGState *f;
fgBUCKET p1, p2;
static fgBUCKET p_last = {-1000, 0, 0, 0};
int tile_diameter;
int i, j, dw, dh;
c = &global_tile_cache;
- f = current_aircraft.flight;
+ f = current_aircraft.fdm_state;
tile_diameter = current_options.get_tile_diameter();
// Render the local tiles
void fgTileMgrRender( void ) {
- fgFLIGHT *f;
+ FGState *f;
fgTILECACHE *c;
fgTILE *t;
fgVIEW *v;
int drawn = 0;
c = &global_tile_cache;
- f = current_aircraft.flight;
+ f = current_aircraft.fdm_state;
v = ¤t_view;
tile_diameter = current_options.get_tile_diameter();
// $Log$
+// Revision 1.49 1998/12/05 15:54:26 curt
+// Renamed class fgFLIGHT to class FGState as per request by JSB.
+//
+// Revision 1.48 1998/12/05 14:20:21 curt
+// Looking into a terrain intersection problem.
+//
+// Revision 1.47 1998/12/05 14:11:19 curt
+// Sun portability tweak.
+//
// Revision 1.46 1998/12/03 14:15:24 curt
// Actually set the current scenery elevation based on scenery intersection point
// rather than calculating the intesection point and throwing it away.