Recognize file, file.gz, and file.obj as scenery object files.
This commit is contained in:
parent
c8a5e3ebb6
commit
22dd9999a8
1 changed files with 7 additions and 6 deletions
|
@ -109,19 +109,17 @@ int fgObjLoad(char *path, fgTILE *tile) {
|
|||
|
||||
o = ¤t_options;
|
||||
|
||||
// First try "path.obz" (compressed format)
|
||||
// First try "path.gz" (compressed format)
|
||||
strcpy(fgpath, path);
|
||||
strcat(fgpath, ".obz");
|
||||
strcat(fgpath, ".gz");
|
||||
if ( (f = fgopen(fgpath, "rb")) == NULL ) {
|
||||
// Next try "path.obj" (uncompressed format)
|
||||
// Next try "path" (uncompressed format)
|
||||
strcpy(fgpath, path);
|
||||
strcat(fgpath, ".obj");
|
||||
if ( (f = fgopen(fgpath, "rb")) == NULL ) {
|
||||
// Next try "path.obj.gz" (compressed format)
|
||||
// Next try "path.obj" (uncompressed format)
|
||||
strcat(fgpath, ".gz");
|
||||
if ( (f = fgopen(fgpath, "rb")) == NULL ) {
|
||||
strcpy(fgpath, path);
|
||||
strcat(fgpath, ".obj");
|
||||
fgPrintf( FG_TERRAIN, FG_ALERT,
|
||||
"Cannot open file: %s\n", fgpath );
|
||||
return(0);
|
||||
|
@ -408,6 +406,9 @@ int fgObjLoad(char *path, fgTILE *tile) {
|
|||
|
||||
|
||||
// $Log$
|
||||
// Revision 1.8 1998/06/05 18:19:18 curt
|
||||
// Recognize file, file.gz, and file.obj as scenery object files.
|
||||
//
|
||||
// Revision 1.7 1998/05/24 02:49:09 curt
|
||||
// Implimented fragment level view frustum culling.
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue