Don't crash quite so hard on big endian systems.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2523 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
6d6beaee1e
commit
656807e41a
1 changed files with 1 additions and 1 deletions
|
@ -836,7 +836,7 @@ void NPP_QWFlush(void)
|
|||
{
|
||||
short data;
|
||||
float org[3];
|
||||
edict_t *ent = EDICT_NUM(svprogfuncs, (*(short*)&buffer[1]));
|
||||
edict_t *ent = EDICT_NUM(svprogfuncs, LittleShort((*(short*)&buffer[1])));
|
||||
VectorCopy(ent->v->origin, org);
|
||||
|
||||
data = LittleShort((short)(org[0]*8));
|
||||
|
|
Loading…
Reference in a new issue