1
0
Fork 0
forked from fte/fteqw

That's endian, not endien.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2343 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2006-07-08 22:34:47 +00:00
parent e5e6404752
commit 0446b1d81a

View file

@ -578,7 +578,7 @@ float Q_atof (char *str)
============================================================================ ============================================================================
*/ */
qboolean bigendien; qboolean bigendian;
short (*BigShort) (short l); short (*BigShort) (short l);
short (*LittleShort) (short l); short (*LittleShort) (short l);
@ -646,7 +646,7 @@ void COM_SwapLittleShortBlock (short *s, int size)
if (size <= 0) if (size <= 0)
return; return;
if (!bigendien) if (!bigendian)
return; return;
while (size) while (size)
@ -2353,7 +2353,7 @@ void COM_Init (void)
// set the qbyte swapping variables in a portable manner // set the qbyte swapping variables in a portable manner
if ( *(short *)swaptest == 1) if ( *(short *)swaptest == 1)
{ {
bigendien = false; bigendian = false;
BigShort = ShortSwap; BigShort = ShortSwap;
LittleShort = ShortNoSwap; LittleShort = ShortNoSwap;
BigLong = LongSwap; BigLong = LongSwap;
@ -2363,7 +2363,7 @@ void COM_Init (void)
} }
else else
{ {
bigendien = true; bigendian = true;
BigShort = ShortNoSwap; BigShort = ShortNoSwap;
LittleShort = ShortSwap; LittleShort = ShortSwap;
BigLong = LongNoSwap; BigLong = LongNoSwap;