Don't byteswap the beginning of the string table, please. (commited by proxy for Spike)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2524 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2007-07-20 17:02:38 +00:00
parent 656807e41a
commit 574e7c1e11
1 changed files with 5 additions and 1 deletions

View File

@ -2326,7 +2326,7 @@ retry:
// byte swap the header
#ifndef NOENDIAN
for (i=0 ; i<sizeof(*pr_progs)/sizeof(int) ; i++)
for (i=0 ; i<standard_dprograms_t_size/sizeof(int); i++)
((int *)pr_progs)[i] = PRLittleLong ( ((int *)pr_progs)[i] );
#endif
@ -2337,6 +2337,10 @@ retry:
}
else if (pr_progs->version == PROG_EXTENDEDVERSION)
{
#ifndef NOENDIAN
for (i = standard_dprograms_t_size/sizeof(int); i < sizeof(dprograms_t)/sizeof(int); i++)
((int *)pr_progs)[i] = PRLittleLong ( ((int *)pr_progs)[i] );
#endif
if (pr_progs->secondaryversion == PROG_SECONDARYVERSION16)
{
// printf("Opening 16bit fte progs file \"%s\"\n", filename);