From 574e7c1e117938b737586b49614f3779059596c9 Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Fri, 20 Jul 2007 17:02:38 +0000 Subject: [PATCH] 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 --- engine/qclib/pr_edict.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/qclib/pr_edict.c b/engine/qclib/pr_edict.c index d826c4fb8..cf4c702bf 100644 --- a/engine/qclib/pr_edict.c +++ b/engine/qclib/pr_edict.c @@ -2326,7 +2326,7 @@ retry: // byte swap the header #ifndef NOENDIAN - for (i=0 ; iversion == 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);