Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
FileEX committed Aug 9, 2024
1 parent 5b5a88e commit e4c4c18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Client/mods/deathmatch/logic/CClientVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1578,15 +1578,15 @@ void CClientVehicle::SetHeliRotorSpeed(float fSpeed)

bool CClientVehicle::GetVehicleRotorState() const noexcept
{
return m_pVehicle && (m_eVehicleType == CLIENTVEHICLE_HELI || m_eVehicleType == CLIENTVEHICLE_PLANE) ? m_pVehicle->GetVehicleRotorState() : m_heliRotorState;
return m_pVehicle && (m_eVehicleType == CLIENTVEHICLE_HELI || m_eVehicleType == CLIENTVEHICLE_PLANE) ? m_pVehicle->GetVehicleRotorState() : m_rotorState;
}

void CClientVehicle::SetVehicleRotorState(bool state, bool stopRotor) noexcept
{
if (m_pVehicle && (m_eVehicleType == CLIENTVEHICLE_HELI || m_eVehicleType == CLIENTVEHICLE_PLANE))
m_pVehicle->SetVehicleRotorState(state, stopRotor, GetVehicleType() == CLIENTVEHICLE_HELI);

m_heliRotorState = state;
m_rotorState = state;
}

void CClientVehicle::SetPlaneRotorSpeed(float fSpeed)
Expand Down
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/CClientVehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ class CClientVehicle : public CClientStreamElement
uchar m_ucTrackID;
bool m_bJustStreamedIn;
bool m_bWheelScaleChanged;
bool m_heliRotorState{true};
bool m_rotorState{true};

// Time dependent error compensation interpolation
struct
Expand Down

0 comments on commit e4c4c18

Please sign in to comment.