mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-16 00:49:04 +00:00
test
This commit is contained in:
parent
5d90821a8e
commit
a6ca999ed4
2 changed files with 5 additions and 5 deletions
|
@ -1598,25 +1598,25 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command)
|
||||||
case COMMAND_ABS_VAR_INT:
|
case COMMAND_ABS_VAR_INT:
|
||||||
{
|
{
|
||||||
int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
|
int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
|
||||||
*ptr = abs(*ptr);
|
*ptr = ABS(*ptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_ABS_LVAR_INT:
|
case COMMAND_ABS_LVAR_INT:
|
||||||
{
|
{
|
||||||
int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_LOCAL);
|
int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_LOCAL);
|
||||||
*ptr = abs(*ptr);
|
*ptr = ABS(*ptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_ABS_VAR_FLOAT:
|
case COMMAND_ABS_VAR_FLOAT:
|
||||||
{
|
{
|
||||||
float* ptr = (float*)GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
|
float* ptr = (float*)GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
|
||||||
*ptr = abs(*ptr);
|
*ptr = ABS(*ptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_ABS_LVAR_FLOAT:
|
case COMMAND_ABS_LVAR_FLOAT:
|
||||||
{
|
{
|
||||||
float* ptr = (float*)GetPointerToScriptVariable(&m_nIp, VAR_LOCAL);
|
float* ptr = (float*)GetPointerToScriptVariable(&m_nIp, VAR_LOCAL);
|
||||||
*ptr = abs(*ptr);
|
*ptr = ABS(*ptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_GENERATE_RANDOM_FLOAT:
|
case COMMAND_GENERATE_RANDOM_FLOAT:
|
||||||
|
|
|
@ -178,4 +178,4 @@ void re3_assert(const char *expr, const char *filename, unsigned int lineno, con
|
||||||
|
|
||||||
#define max(a, b) (((a) > (b)) ? (a) : (b))
|
#define max(a, b) (((a) > (b)) ? (a) : (b))
|
||||||
#define min(a, b) (((a) < (b)) ? (a) : (b))
|
#define min(a, b) (((a) < (b)) ? (a) : (b))
|
||||||
#define abs(a) (((a) < 0) ? (-a) : (a))
|
#define ABS(a) (((a) < 0) ? (-a) : (a))
|
||||||
|
|
Loading…
Reference in a new issue