mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-05-15 07:27:12 +02:00
Remove player validation where non-valid player IDs are allowed.
This commit is contained in:
parent
0ebdb909df
commit
a5999e5b50
@ -591,9 +591,6 @@ void SetVehiclesForcedRespawnHeight(Float32 height)
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
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,
|
||||
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)
|
||||
{
|
||||
// Validate the specified player
|
||||
source.Validate();
|
||||
// Perform the requested operation
|
||||
if (_Func->CreateExplosion(world, type, x, y, z,
|
||||
source.GetID(), grounded) == vcmpErrorArgumentOutOfBounds)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user