1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-05-15 15:37:12 +02:00

Remove player validation where non-valid player IDs are allowed.

This commit is contained in:
Sandu Liviu Catalin 2018-07-28 13:28:59 +03:00
parent 0ebdb909df
commit a5999e5b50

View File

@ -591,9 +591,6 @@ void SetVehiclesForcedRespawnHeight(Float32 height)
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
void CreateExplosion(Int32 world, Int32 type, const Vector3 & pos, CPlayer & source, bool grounded) void CreateExplosion(Int32 world, Int32 type, const Vector3 & pos, CPlayer & source, bool grounded)
{ {
// Validate the specified player
source.Validate();
// Perform the requested operation
if (_Func->CreateExplosion(world, type, pos.x, pos.y, pos.z, if (_Func->CreateExplosion(world, type, pos.x, pos.y, pos.z,
source.GetID(), grounded) == vcmpErrorArgumentOutOfBounds) source.GetID(), grounded) == vcmpErrorArgumentOutOfBounds)
{ {
@ -604,9 +601,6 @@ void CreateExplosion(Int32 world, Int32 type, const Vector3 & pos, CPlayer & sou
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
void CreateExplosionEx(Int32 world, Int32 type, Float32 x, Float32 y, Float32 z, CPlayer & source, bool grounded) void CreateExplosionEx(Int32 world, Int32 type, Float32 x, Float32 y, Float32 z, CPlayer & source, bool grounded)
{ {
// Validate the specified player
source.Validate();
// Perform the requested operation
if (_Func->CreateExplosion(world, type, x, y, z, if (_Func->CreateExplosion(world, type, x, y, z,
source.GetID(), grounded) == vcmpErrorArgumentOutOfBounds) source.GetID(), grounded) == vcmpErrorArgumentOutOfBounds)
{ {