Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
FileEX committed Nov 22, 2024
1 parent e3bbba4 commit 92c9171
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2589,6 +2589,9 @@ bool CStaticFunctionDefinitions::SetPedOnFire(CClientEntity& Entity, bool bOnFir
{
if (IS_PED(&Entity))
{
if (!Entity.IsLocalEntity())
return false;

CClientPed& Ped = static_cast<CClientPed&>(Entity);
Ped.SetOnFire(bOnFire);
return true;
Expand Down
3 changes: 3 additions & 0 deletions Client/mods/deathmatch/logic/luadefs/CLuaElementDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2516,6 +2516,9 @@ bool CLuaElementDefs::SetLowLodElement(lua_State* luaVM, CClientEntity* pEntity,

bool CLuaElementDefs::SetElementOnFire(CClientEntity* entity, bool onFire) noexcept
{
if (!entity->IsLocalEntity())
return false;

return entity->SetOnFire(onFire);
}

Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CResourceChecker.Data.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ namespace

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

// Ped
{false, "setPedOnFire", "setElementOnFire"},
Expand Down

0 comments on commit 92c9171

Please sign in to comment.