mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 13:20:00 +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(
|
float heading = LimitAngleOnCircle(
|
||||||
RADTODEG(Atan2(-pObject->GetForward().x, pObject->GetForward().y)));
|
RADTODEG(Atan2(-pObject->GetForward().x, pObject->GetForward().y)));
|
||||||
float headingTarget = *(float*)&ScriptParams[1];
|
float headingTarget = *(float*)&ScriptParams[1];
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
float rotateBy = *(float*)&ScriptParams[2] * CTimer::GetTimeStepFix();
|
||||||
|
#else
|
||||||
float rotateBy = *(float*)&ScriptParams[2];
|
float rotateBy = *(float*)&ScriptParams[2];
|
||||||
|
#endif
|
||||||
if (headingTarget == heading) { // using direct comparasion here is fine
|
if (headingTarget == heading) { // using direct comparasion here is fine
|
||||||
UpdateCompareFlag(true);
|
UpdateCompareFlag(true);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -6911,7 +6915,11 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
|
||||||
assert(pObject);
|
assert(pObject);
|
||||||
CVector pos = pObject->GetPosition();
|
CVector pos = pObject->GetPosition();
|
||||||
CVector posTarget = *(CVector*)&ScriptParams[1];
|
CVector posTarget = *(CVector*)&ScriptParams[1];
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
CVector slideBy = *(CVector*)&ScriptParams[4] * CTimer::GetTimeStepFix();
|
||||||
|
#else
|
||||||
CVector slideBy = *(CVector*)&ScriptParams[4];
|
CVector slideBy = *(CVector*)&ScriptParams[4];
|
||||||
|
#endif
|
||||||
if (posTarget == pos) { // using direct comparasion here is fine
|
if (posTarget == pos) { // using direct comparasion here is fine
|
||||||
UpdateCompareFlag(true);
|
UpdateCompareFlag(true);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue