Skip to content

Commit f4cdc45

Browse files
committed
Changes
1 parent 08fc24a commit f4cdc45

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,8 +1076,11 @@ bool CStaticFunctionDefinitions::SetElementPosition(CClientEntity& Entity, const
10761076
{
10771077
RUN_CHILDREN(SetElementPosition(**iter, vecPosition))
10781078

1079-
if (!Entity.IsLocalEntity())
1080-
return false;
1079+
if (Entity.GetType() == CCLIENTVEHICLE)
1080+
{
1081+
if (!Entity.IsLocalEntity() && !static_cast<CDeathmatchVehicle&>(Entity).IsSyncing())
1082+
return false;
1083+
}
10811084

10821085
if (bWarp)
10831086
Entity.Teleport(vecPosition);

Client/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,12 +2518,6 @@ int CLuaVehicleDefs::SetVehicleHandling(lua_State* luaVM)
25182518

25192519
if (!argStream.HasErrors())
25202520
{
2521-
if (!pVehicle->IsLocalEntity())
2522-
{
2523-
lua_pushboolean(luaVM, false);
2524-
return 1;
2525-
}
2526-
25272521
if (argStream.NextIsString())
25282522
{
25292523
SString strProperty;

0 commit comments

Comments
 (0)