Update to ZDoom r2210:

- fixed: UpdateSegBBox only used the first seg of a linedef to calculate the linedef's bounding box.
- Merge scanner changes from the scripting branch, since I'm pretty sure the
  token names were out of sync here, too.
- Fixed: Hexen's fighter's skull has a different animation than Heretic's so it needs to be a separate class.
- Added an option to parse lumps named ZMAPINFO in place of MAPINFO. Any MAPINFO lumps in files containing
  a ZMAPINFO lump will be completely ignored. This is to allow ZDoom specific definitions which are incompatible 
  with other engines capable of reading MAPINFO. Any ZMAPINFO lump must be in the new MAPINFO format.
- Changed FileExists() to use stat instead of fopen/fclose, which ought to be lower
  overhead for files that are present.
- Whoops. DXT5 decompression got the alpha values wrong. That's "wrong" as in "garbage", since
  yalphaslice was never initialized to anything. (I should probably test this to make sure I
  actually got it right now...)

- add some tolerance to fake sector height checks to allow for slope related imprecisions.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@747 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2010-03-14 15:38:52 +00:00
parent d9503655f1
commit 0f0e32261e
14 changed files with 3309 additions and 3140 deletions

View file

@ -148,17 +148,13 @@ int Q_filelength (FILE *f)
bool FileExists (const char *filename)
{
FILE *f;
struct stat buff;
// [RH] Empty filenames are never there
if (filename == NULL || *filename == 0)
return false;
f = fopen (filename, "r");
if (!f)
return false;
fclose (f);
return true;
return stat(filename, &buff) == 0 && !(buff.st_mode & S_IFDIR);
}
//==========================================================================