From c6199c950bd8aacc6896d7386fc9343e14c9924a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadas=20Lap=C4=97?= Date: Sun, 20 Dec 2020 12:26:44 +0200 Subject: [PATCH] Fix #1916: Make client-side setVehicleHandling to work on vehicles created server-side --- .../logic/CStaticFunctionDefinitions.cpp | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp b/Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp index 1f4ad09947f..c79ccd9e8b1 100644 --- a/Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp +++ b/Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp @@ -8741,9 +8741,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH { assert(pVehicle); - if (!pVehicle->IsLocalEntity()) - return false; - CHandlingEntry* pEntry = pVehicle->GetHandlingData(); if (pEntry) @@ -8761,9 +8758,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH { assert(pVehicle); - if (!pVehicle->IsLocalEntity()) - return false; - CHandlingEntry* pEntry = pVehicle->GetHandlingData(); if (pEntry) @@ -8781,9 +8775,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH { assert(pVehicle); - if (!pVehicle->IsLocalEntity()) - return false; - CHandlingEntry* pEntry = pVehicle->GetHandlingData(); if (pEntry) @@ -8801,9 +8792,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH { assert(pVehicle); - if (!pVehicle->IsLocalEntity()) - return false; - CHandlingEntry* pEntry = pVehicle->GetHandlingData(); if (pEntry) @@ -8821,9 +8809,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH { assert(pVehicle); - if (!pVehicle->IsLocalEntity()) - return false; - CHandlingEntry* pEntry = pVehicle->GetHandlingData(); if (pEntry) @@ -8842,9 +8827,6 @@ bool CStaticFunctionDefinitions::ResetVehicleHandling(CClientVehicle* pVehicle) { assert(pVehicle); - if (!pVehicle->IsLocalEntity()) - return false; - eVehicleTypes eModel = (eVehicleTypes)pVehicle->GetModel(); CHandlingEntry* pEntry = pVehicle->GetHandlingData(); const CHandlingEntry* pNewEntry; @@ -8907,9 +8889,6 @@ bool CStaticFunctionDefinitions::ResetVehicleHandlingProperty(CClientVehicle* pV { assert(pVehicle); - if (!pVehicle->IsLocalEntity()) - return false; - CHandlingEntry* pEntry = pVehicle->GetHandlingData(); const CHandlingEntry* pOrigEntry = pVehicle->GetOriginalHandlingData();