From c428a2946938f10296ba2434d57fb629b181514d Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Sat, 9 Jul 2005 17:14:55 +0000 Subject: [PATCH] More endian fixes, Q3 maps work on big endian machines now. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1143 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/gl_q2bsp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/common/gl_q2bsp.c b/engine/common/gl_q2bsp.c index 730c289f5..fca733cdc 100644 --- a/engine/common/gl_q2bsp.c +++ b/engine/common/gl_q2bsp.c @@ -2453,7 +2453,6 @@ void CModQ3_LoadRFaces (lump_t *l, qboolean useshaders) { out->plane = pl; out->texinfo = loadmodel->texinfo + LittleLong(in->shadernum); - in->facetype = LittleLong(in->facetype); out->lightmaptexturenum = LittleLong(in->lightmapnum); out->light_s = LittleLong(in->lightmap_x); out->light_t = LittleLong(in->lightmap_y); @@ -2847,8 +2846,8 @@ void CModQ3_LoadLeafs (lump_t *l) { for (j = 0; j < 3; j++) { - out->minmaxs[0+j] = LittleFloat(in->mins[j]); - out->minmaxs[3+j] = LittleFloat(in->maxs[j]); + out->minmaxs[0+j] = LittleLong(in->mins[j]); + out->minmaxs[3+j] = LittleLong(in->maxs[j]); } out->cluster = LittleLong ( in->cluster ); out->area = LittleLong ( in->area ) + 1;