@@ -8905,10 +8905,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, Ha
89058905 {
89068906 if (SetEntryHandling (pEntry, eProperty, ucValue))
89078907 {
8908- CModelInfo* pModelInfo = g_pGame->GetModelInfo (pVehicle->GetModel ());
8909- if (!pModelInfo || !pModelInfo->IsLoaded ())
8910- return false ;
8911-
89128908 pVehicle->ApplyHandling ();
89138909 return true ;
89148910 }
@@ -8926,10 +8922,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, Ha
89268922 {
89278923 if (SetEntryHandling (pEntry, eProperty, uiValue))
89288924 {
8929- CModelInfo* pModelInfo = g_pGame->GetModelInfo (pVehicle->GetModel ());
8930- if (!pModelInfo || !pModelInfo->IsLoaded ())
8931- return false ;
8932-
89338925 pVehicle->ApplyHandling ();
89348926 return true ;
89358927 }
@@ -8947,10 +8939,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, Ha
89478939 {
89488940 if (SetEntryHandling (pEntry, eProperty, fValue ))
89498941 {
8950- CModelInfo* pModelInfo = g_pGame->GetModelInfo (pVehicle->GetModel ());
8951- if (!pModelInfo || !pModelInfo->IsLoaded ())
8952- return false ;
8953-
89548942 pVehicle->ApplyHandling ();
89558943 return true ;
89568944 }
@@ -8968,10 +8956,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, Ha
89688956 {
89698957 if (SetEntryHandling (pEntry, eProperty, strValue))
89708958 {
8971- CModelInfo* pModelInfo = g_pGame->GetModelInfo (pVehicle->GetModel ());
8972- if (!pModelInfo || !pModelInfo->IsLoaded ())
8973- return false ;
8974-
89758959 pVehicle->ApplyHandling ();
89768960 return true ;
89778961 }
@@ -8989,10 +8973,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, Ha
89898973 {
89908974 if (SetEntryHandling (pEntry, eProperty, vecValue))
89918975 {
8992- CModelInfo* pModelInfo = g_pGame->GetModelInfo (pVehicle->GetModel ());
8993- if (!pModelInfo || !pModelInfo->IsLoaded ())
8994- return false ;
8995-
89968976 pVehicle->ApplyHandling ();
89978977 return true ;
89988978 }
@@ -9051,10 +9031,6 @@ bool CStaticFunctionDefinitions::ResetVehicleHandling(CClientVehicle* pVehicle)
90519031 pEntry->SetSuspensionUpperLimit (pEntry->GetSuspensionLowerLimit () - 0 .1f );
90529032 }
90539033
9054- CModelInfo* pModelInfo = g_pGame->GetModelInfo (pVehicle->GetModel ());
9055- if (!pModelInfo || !pModelInfo->IsLoaded ())
9056- return false ;
9057-
90589034 pVehicle->ApplyHandling ();
90599035
90609036 return true ;
@@ -9104,10 +9080,6 @@ bool CStaticFunctionDefinitions::ResetVehicleHandlingProperty(CClientVehicle* pV
91049080 return false ;
91059081 }
91069082
9107- CModelInfo* pModelInfo = g_pGame->GetModelInfo (pVehicle->GetModel ());
9108- if (!pModelInfo || !pModelInfo->IsLoaded ())
9109- return false ;
9110-
91119083 pVehicle->ApplyHandling ();
91129084
91139085 return true ;
0 commit comments