Skip to content

Commit

Permalink
fix: stupid jank
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Mar 10, 2024
1 parent 6ae91a5 commit 3215d89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Modules/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ DETOUR(Client::ApplyMouse, int nSlot, QAngle &viewangles, CUserCmd *cmd, float m
viewangles.z - lastViewAngles.z,
};

// HACKHACK: Orange can't get client offsets?
auto upDelta = 1.0f;
if (!engine->IsCoop() || !engine->IsOrange()) {
upDelta = fabsf(client->GetPortalLocal(client->GetPlayer(nSlot + 1)).m_up.z - 1);
auto player = client->GetPlayer(nSlot + 1);
if (player) {
upDelta = fabsf(client->GetPortalLocal(player).m_up.z - 1);
}

if (sar_patch_small_angle_decay.GetBool()) {
Expand Down

0 comments on commit 3215d89

Please sign in to comment.