Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FileEX committed Aug 9, 2023
1 parent 1c0c978 commit 91c5dbe
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Client/mods/deathmatch/logic/CClientVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,9 +1003,13 @@ void CClientVehicle::SetModelBlocking(unsigned short usModel, unsigned char ucVa
if (m_pUpgrades)
m_pUpgrades->RemoveAll(false);

// Are we swapping from a vortex or skimmer?
bool bResetWheelAndDoorStates = (m_usModel == VT_VORTEX || m_usModel == VT_SKIMMER ||
(m_eVehicleType == CLIENTVEHICLE_PLANE && m_eVehicleType != CClientVehicleManager::GetVehicleType(usModel)));
// Are we swapping from a vehicle without doors?
bool bResetWheelAndDoorStates =
((m_usModel == VT_VORTEX || m_usModel == VT_TRACTOR || m_usModel == VT_CADDY || m_usModel == VT_BAGGAGE || m_usModel == VT_BANDITO ||
m_usModel == VT_BFINJECT || m_usModel == VT_DOZER || m_usModel == VT_FORKLIFT || m_usModel == VT_KART || m_usModel == VT_MOWER ||
m_usModel == VT_QUAD || m_usModel == VT_RCBANDIT || m_usModel == VT_RCCAM || m_usModel == VT_RCGOBLIN || m_usModel == VT_RCRAIDER ||
m_usModel == VT_RCTIGER || m_usModel == VT_BLOODRA) ||
m_eVehicleType != CClientVehicleManager::GetVehicleType(usModel));

// Apply variant requirements
if (ucVariant == 255 && ucVariant2 == 255)
Expand Down

0 comments on commit 91c5dbe

Please sign in to comment.