mirror of
https://github.com/halpz/re3.git
synced 2024-12-23 17:45:28 +00:00
script FPS fix
This commit is contained in:
parent
3cda88ea20
commit
746f2aa479
|
@ -6862,7 +6862,11 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
|
|||
float heading = LimitAngleOnCircle(
|
||||
RADTODEG(Atan2(-pObject->GetForward().x, pObject->GetForward().y)));
|
||||
float headingTarget = *(float*)&ScriptParams[1];
|
||||
#ifdef FIX_BUGS
|
||||
float rotateBy = *(float*)&ScriptParams[2] * CTimer::GetTimeStepFix();
|
||||
#else
|
||||
float rotateBy = *(float*)&ScriptParams[2];
|
||||
#endif
|
||||
if (headingTarget == heading) { // using direct comparasion here is fine
|
||||
UpdateCompareFlag(true);
|
||||
return 0;
|
||||
|
@ -6911,7 +6915,11 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
|
|||
assert(pObject);
|
||||
CVector pos = pObject->GetPosition();
|
||||
CVector posTarget = *(CVector*)&ScriptParams[1];
|
||||
#ifdef FIX_BUGS
|
||||
CVector slideBy = *(CVector*)&ScriptParams[4] * CTimer::GetTimeStepFix();
|
||||
#else
|
||||
CVector slideBy = *(CVector*)&ScriptParams[4];
|
||||
#endif
|
||||
if (posTarget == pos) { // using direct comparasion here is fine
|
||||
UpdateCompareFlag(true);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue