Skip to content

Commit

Permalink
refactor: use friction field
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Sep 29, 2024
1 parent 886ea72 commit a9ba717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Features/Tas/TasPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ TasPlayerInfo TasPlayer::GetPlayerInfo(int slot, void *player, CUserCmd *cmd, bo

pi.tick = pl->template field<int>("m_nTickBase");
pi.slot = server->GetSplitScreenPlayerSlot(player);
pi.surfaceFriction = *reinterpret_cast<float *>((uintptr_t)player + Offsets::S_m_surfaceFriction);
pi.surfaceFriction = pl->template field<float>("m_flFriction");
pi.ducked = pl->ducked();

float *m_flMaxspeed = &pl->template field<float>("m_flMaxspeed");
Expand Down Expand Up @@ -401,7 +401,7 @@ TasPlayerInfo TasPlayer::GetPlayerInfo(int slot, void *player, CUserCmd *cmd, bo

pi.tick = pl->template field<int>("m_nTickBase");
pi.slot = server->GetSplitScreenPlayerSlot(player);
pi.surfaceFriction = *reinterpret_cast<float *>((uintptr_t)player + Offsets::C_m_surfaceFriction);
pi.surfaceFriction = pl->template field<float>("m_flFriction");
pi.ducked = pl->ducked();

float *m_flMaxspeed = &pl->template field<float>("m_flMaxspeed");
Expand Down

0 comments on commit a9ba717

Please sign in to comment.