mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
Fix incorrect actor flag handling on big endian platforms
This commit is contained in:
parent
7b69c60af1
commit
65203760a8
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ INTBOOL CheckActorFlag(const AActor *owner, FFlagDef *fd)
|
||||||
{
|
{
|
||||||
return fd->flagbit & *(DWORD *)(((char*)owner) + fd->structoffset);
|
return fd->flagbit & *(DWORD *)(((char*)owner) + fd->structoffset);
|
||||||
}
|
}
|
||||||
#ifdef __BID_ENDIAN__
|
#ifdef __BIG_ENDIAN__
|
||||||
else if (fd->fieldsize == 2)
|
else if (fd->fieldsize == 2)
|
||||||
{
|
{
|
||||||
return fd->flagbit & *(WORD *)(((char*)owner) + fd->structoffset);
|
return fd->flagbit & *(WORD *)(((char*)owner) + fd->structoffset);
|
||||||
|
|
Loading…
Reference in a new issue