Skip to content

Commit 92c9171

Browse files
committed
Fix build
1 parent e3bbba4 commit 92c9171

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2589,6 +2589,9 @@ bool CStaticFunctionDefinitions::SetPedOnFire(CClientEntity& Entity, bool bOnFir
25892589
{
25902590
if (IS_PED(&Entity))
25912591
{
2592+
if (!Entity.IsLocalEntity())
2593+
return false;
2594+
25922595
CClientPed& Ped = static_cast<CClientPed&>(Entity);
25932596
Ped.SetOnFire(bOnFire);
25942597
return true;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,6 +2516,9 @@ bool CLuaElementDefs::SetLowLodElement(lua_State* luaVM, CClientEntity* pEntity,
25162516

25172517
bool CLuaElementDefs::SetElementOnFire(CClientEntity* entity, bool onFire) noexcept
25182518
{
2519+
if (!entity->IsLocalEntity())
2520+
return false;
2521+
25192522
return entity->SetOnFire(onFire);
25202523
}
25212524

Server/mods/deathmatch/logic/CResourceChecker.Data.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ namespace
277277

278278
// Base Encoding & Decoding
279279
{true, "base64Encode", "Please manually change this to encodeString (different syntax). Refer to the wiki for details"},
280-
{true, "base64Decode", "Please manually change this to decodeString (different syntax). Refer to the wiki for details"}
280+
{true, "base64Decode", "Please manually change this to decodeString (different syntax). Refer to the wiki for details"},
281281

282282
// Ped
283283
{false, "setPedOnFire", "setElementOnFire"},

0 commit comments

Comments
 (0)