mirror of
				https://github.com/VCMP-SqMod/SqMod.git
				synced 2025-10-30 22:07:18 +01:00 
			
		
		
		
	Remove player validation where non-valid player IDs are allowed.
This commit is contained in:
		| @@ -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) | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user