- fixed: P_TranslateLinedef should not do any byte swapping but require passing of properly ordered values.

This gets called from several places, and the only one passing in potentially byte swapped values is P_LoadLineDefs.
All other uses of this function were essentially broken on PowerPC.
This commit is contained in:
Christoph Oelckers 2017-05-04 23:52:16 +02:00
commit 2dff0e7309
3 changed files with 7 additions and 4 deletions

View file

@ -64,9 +64,9 @@ typedef enum
void P_TranslateLineDef (line_t *ld, maplinedef_t *mld, int lineindexforid)
{
unsigned short special = (unsigned short) LittleShort(mld->special);
short tag = LittleShort(mld->tag);
uint32_t flags = LittleShort(mld->flags);
uint32_t special = mld->special;
short tag = mld->tag;
uint32_t flags =mld->flags;
INTBOOL passthrough = 0;
uint32_t flags1 = flags;