mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-29 21:47:12 +02:00
Migrated the host module to C++ exceptions as well.
Also enabled the latest C++ revision in the project. Replaced the Random library with the one provided by C++11. Implemented a simple AES256 encryption class. Various other fixes and improvements.
This commit is contained in:
@ -155,14 +155,18 @@ bool EnabledChatTagsByDefault(void)
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CreateExplosion(Int32 world, Int32 type, const Vector3 & pos, CPlayer & source, Uint32 level)
|
||||
{
|
||||
if (source.Validate())
|
||||
_Func->CreateExplosion(world, type, pos.x, pos.y, pos.z, source.GetID(), level);
|
||||
// Validate the specified player
|
||||
source.Validate();
|
||||
// Perform the requested operation
|
||||
_Func->CreateExplosion(world, type, pos.x, pos.y, pos.z, source.GetID(), level);
|
||||
}
|
||||
|
||||
void CreateExplosionEx(Int32 world, Int32 type, Float32 x, Float32 y, Float32 z, CPlayer & source, Uint32 level)
|
||||
{
|
||||
if (source.Validate())
|
||||
_Func->CreateExplosion(world, type, x, y, z, source.GetID(), level);
|
||||
// Validate the specified player
|
||||
source.Validate();
|
||||
// Perform the requested operation
|
||||
_Func->CreateExplosion(world, type, x, y, z, source.GetID(), level);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user