mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-16 17:01:44 +00:00
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
This commit is contained in:
parent
78390adbfa
commit
c428a29469
1 changed files with 2 additions and 3 deletions
|
@ -2453,7 +2453,6 @@ void CModQ3_LoadRFaces (lump_t *l, qboolean useshaders)
|
||||||
{
|
{
|
||||||
out->plane = pl;
|
out->plane = pl;
|
||||||
out->texinfo = loadmodel->texinfo + LittleLong(in->shadernum);
|
out->texinfo = loadmodel->texinfo + LittleLong(in->shadernum);
|
||||||
in->facetype = LittleLong(in->facetype);
|
|
||||||
out->lightmaptexturenum = LittleLong(in->lightmapnum);
|
out->lightmaptexturenum = LittleLong(in->lightmapnum);
|
||||||
out->light_s = LittleLong(in->lightmap_x);
|
out->light_s = LittleLong(in->lightmap_x);
|
||||||
out->light_t = LittleLong(in->lightmap_y);
|
out->light_t = LittleLong(in->lightmap_y);
|
||||||
|
@ -2847,8 +2846,8 @@ void CModQ3_LoadLeafs (lump_t *l)
|
||||||
{
|
{
|
||||||
for (j = 0; j < 3; j++)
|
for (j = 0; j < 3; j++)
|
||||||
{
|
{
|
||||||
out->minmaxs[0+j] = LittleFloat(in->mins[j]);
|
out->minmaxs[0+j] = LittleLong(in->mins[j]);
|
||||||
out->minmaxs[3+j] = LittleFloat(in->maxs[j]);
|
out->minmaxs[3+j] = LittleLong(in->maxs[j]);
|
||||||
}
|
}
|
||||||
out->cluster = LittleLong ( in->cluster );
|
out->cluster = LittleLong ( in->cluster );
|
||||||
out->area = LittleLong ( in->area ) + 1;
|
out->area = LittleLong ( in->area ) + 1;
|
||||||
|
|
Loading…
Reference in a new issue