From 0446b1d81ab8ee4c4590cd8a7fd2e1e09e5713ef Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Sat, 8 Jul 2006 22:34:47 +0000 Subject: [PATCH] That's endian, not endien. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2343 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/common/common.c b/engine/common/common.c index c9d816c7c..d03617a71 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -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;