Skip to content

Commit a4eb1ee

Browse files
Synchronize changes from 1.6 master branch [ci skip]
4b86e46 Allow setVehicleHandling to modify server-side vehicles on client (PR #1935) e1d0fcb Visual Studio Update
2 parents bec2204 + 4b86e46 commit a4eb1ee

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

-21
Original file line numberDiff line numberDiff line change
@@ -8800,9 +8800,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH
88008800
{
88018801
assert(pVehicle);
88028802

8803-
if (!pVehicle->IsLocalEntity())
8804-
return false;
8805-
88068803
CHandlingEntry* pEntry = pVehicle->GetHandlingData();
88078804

88088805
if (pEntry)
@@ -8820,9 +8817,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH
88208817
{
88218818
assert(pVehicle);
88228819

8823-
if (!pVehicle->IsLocalEntity())
8824-
return false;
8825-
88268820
CHandlingEntry* pEntry = pVehicle->GetHandlingData();
88278821

88288822
if (pEntry)
@@ -8840,9 +8834,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH
88408834
{
88418835
assert(pVehicle);
88428836

8843-
if (!pVehicle->IsLocalEntity())
8844-
return false;
8845-
88468837
CHandlingEntry* pEntry = pVehicle->GetHandlingData();
88478838

88488839
if (pEntry)
@@ -8860,9 +8851,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH
88608851
{
88618852
assert(pVehicle);
88628853

8863-
if (!pVehicle->IsLocalEntity())
8864-
return false;
8865-
88668854
CHandlingEntry* pEntry = pVehicle->GetHandlingData();
88678855

88688856
if (pEntry)
@@ -8880,9 +8868,6 @@ bool CStaticFunctionDefinitions::SetVehicleHandling(CClientVehicle* pVehicle, eH
88808868
{
88818869
assert(pVehicle);
88828870

8883-
if (!pVehicle->IsLocalEntity())
8884-
return false;
8885-
88868871
CHandlingEntry* pEntry = pVehicle->GetHandlingData();
88878872

88888873
if (pEntry)
@@ -8901,9 +8886,6 @@ bool CStaticFunctionDefinitions::ResetVehicleHandling(CClientVehicle* pVehicle)
89018886
{
89028887
assert(pVehicle);
89038888

8904-
if (!pVehicle->IsLocalEntity())
8905-
return false;
8906-
89078889
eVehicleTypes eModel = (eVehicleTypes)pVehicle->GetModel();
89088890
CHandlingEntry* pEntry = pVehicle->GetHandlingData();
89098891
const CHandlingEntry* pNewEntry;
@@ -8966,9 +8948,6 @@ bool CStaticFunctionDefinitions::ResetVehicleHandlingProperty(CClientVehicle* pV
89668948
{
89678949
assert(pVehicle);
89688950

8969-
if (!pVehicle->IsLocalEntity())
8970-
return false;
8971-
89728951
CHandlingEntry* pEntry = pVehicle->GetHandlingData();
89738952
const CHandlingEntry* pOrigEntry = pVehicle->GetOriginalHandlingData();
89748953

0 commit comments

Comments
 (0)