Update to ZDoom r1784:

- Added directory detection to the -file parameter. This obsoletes -dir, so
  that parameter is now gone.
- Removed automatic ".wad" appending from FWadCollection::InitMultipleFiles()
  since it isn't needed and prevented files without extensions from being
  loaded. D_AddFile() already takes care of adding the extension if the
  name as-given does not exist.
- Fixed: Loading single files did not print a newline in the startup text.
- Fixed: A_JumpIf(InTarget)Inventory jumped if the check amount was greater
  than the item's max amount and the item was maxed.
- Fixed: Some dmadds wads used zero-length sprites as placeholders. When you
  ran dmadds to combine it with the IWAD's sprites, they would be replaced by
  the IWAD's sprites, so when loading such wads, we should ignore those as
  valid sprites. (Thanks to entryway for finding this.) See 22ventry's
  22sprite.wad for an example.
- Replaced the use of autoconf's WORDS_BIGENDIAN with __BIG_ENDIAN__, since
  latter comes predefined by GCC.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@433 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2009-09-02 06:19:49 +00:00
parent 061394c3d9
commit b8a584f65f
45 changed files with 461 additions and 158 deletions

View file

@ -360,7 +360,7 @@ static void Scale8 (BYTE *src, int srcpitch,
{
DWORD work;
#ifdef WORDS_BIGENDIAN
#ifdef __BIG_ENDIAN__
work = src[xf >> FRACBITS] << 24; xf += xstep;
work |= src[xf >> FRACBITS] << 16; xf += xstep;
work |= src[xf >> FRACBITS] << 8; xf += xstep;
@ -416,7 +416,7 @@ static void Convert8 (BYTE *src, int srcpitch,
for (savedx = x, x >>= 2; x != 0; x--)
{
*(DWORD *)dest =
#ifdef WORDS_BIGENDIAN
#ifdef __BIG_ENDIAN__
(GPfxPal.Pal8[src[0]] << 24) |
(GPfxPal.Pal8[src[1]] << 16) |
(GPfxPal.Pal8[src[2]] << 8) |
@ -454,7 +454,7 @@ static void Convert8 (BYTE *src, int srcpitch,
{
DWORD work;
#ifdef WORDS_BIGENDIAN
#ifdef __BIG_ENDIAN__
work = GPfxPal.Pal8[src[xf >> FRACBITS]] << 24; xf += xstep;
work |= GPfxPal.Pal8[src[xf >> FRACBITS]] << 16; xf += xstep;
work |= GPfxPal.Pal8[src[xf >> FRACBITS]] << 8; xf += xstep;
@ -510,7 +510,7 @@ static void Convert16 (BYTE *src, int srcpitch,
for (savedx = x, x >>= 1; x != 0; x--)
{
*(DWORD *)dest =
#ifdef WORDS_BIGENDIAN
#ifdef __BIG_ENDIAN__
(GPfxPal.Pal16[src[0]] << 16) |
(GPfxPal.Pal16[src[1]]);
#else
@ -544,7 +544,7 @@ static void Convert16 (BYTE *src, int srcpitch,
{
DWORD work;
#ifdef WORDS_BIGENDIAN
#ifdef __BIG_ENDIAN__
work = GPfxPal.Pal16[src[xf >> FRACBITS]] << 16; xf += xstep;
work |= GPfxPal.Pal16[src[xf >> FRACBITS]]; xf += xstep;
#else