Skip to content

Commit

Permalink
ChaosMod: Remove weird duplicated logic in "Lag" effect
Browse files Browse the repository at this point in the history
This must've occured from a merge conflict I guess? Not sure what happened here
  • Loading branch information
pongo1231 committed Sep 9, 2023
1 parent 9758152 commit b465ffe
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions ChaosMod/Effects/db/Misc/MiscLag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,6 @@ static void OnTickLag()
// save current camera heading to apply after teleporting
float camHeading = GET_GAMEPLAY_CAM_RELATIVE_HEADING();

for (const auto &pair : ms_ToTpVehs)
{
const Ped &ped = pair.first;

Vector3 vel = GET_ENTITY_VELOCITY(ped);
float heading = GET_ENTITY_HEADING(ped);

const Vector3 &tpPos = pair.second;

SET_ENTITY_COORDS_NO_OFFSET(ped, tpPos.x, tpPos.y, tpPos.z, false, false, false);

SET_ENTITY_HEADING(ped, heading);
SET_ENTITY_VELOCITY(ped, vel.x, vel.y, vel.z);
}

ms_ToTpVehs.clear();

for (const auto &pair : ms_ToTpVehs)
{
const Vehicle &veh = pair.first;
Expand All @@ -88,8 +71,6 @@ static void OnTickLag()
SET_ENTITY_VELOCITY(veh, vel.x, vel.y, vel.z);

SET_VEHICLE_FORWARD_SPEED(veh, forwardSpeed);

SET_VEHICLE_ENGINE_ON(veh, true, true, false);
}

ms_ToTpVehs.clear();
Expand Down

0 comments on commit b465ffe

Please sign in to comment.