mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 16:21:50 +01:00
script endian issue
This commit is contained in:
parent
f9b5b7e016
commit
a01a53e697
@ -2957,9 +2957,9 @@ int8 CRunningScript::ProcessCommands0To99(int32 command)
|
|||||||
case COMMAND_SUB_INT_VAR_FROM_INT_VAR:
|
case COMMAND_SUB_INT_VAR_FROM_INT_VAR:
|
||||||
nScriptVar1 = GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
|
nScriptVar1 = GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
|
||||||
#ifndef BIGENDIAN
|
#ifndef BIGENDIAN
|
||||||
*fScriptVar1 += *(float*)GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
|
*nScriptVar1 -= GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
|
||||||
#else
|
#else
|
||||||
*fScriptVar1 = FLOATSWAP32(FLOATSWAP32(*fScriptVar1) + FLOATSWAP32(*(float*)GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL)));
|
*nScriptVar1 = BSWAP32(BSWAP32(*nScriptVar1) - BSWAP32(*GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL)));
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
case COMMAND_SUB_INT_LVAR_FROM_INT_LVAR:
|
case COMMAND_SUB_INT_LVAR_FROM_INT_LVAR:
|
||||||
|
Loading…
Reference in New Issue
Block a user