Skip to content

Commit

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

// 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));
bool bResetWheelAndDoorStates = (!CClientVehicleManager::HasDoors(m_usModel) || m_eVehicleType != CClientVehicleManager::GetVehicleType(usModel));

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

0 comments on commit fbd36fb

Please sign in to comment.