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