mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-19 16:47:14 +02:00
Update Main.cpp
This commit is contained in:
@ -425,6 +425,11 @@ static void OnPlayerNameChange(int32_t player_id, const char * old_name, const c
|
|||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
static void OnPlayerStateChange(int32_t player_id, vcmpPlayerState old_state, vcmpPlayerState new_state)
|
static void OnPlayerStateChange(int32_t player_id, vcmpPlayerState old_state, vcmpPlayerState new_state)
|
||||||
{
|
{
|
||||||
|
// Look for changes
|
||||||
|
if (old_state == new_state)
|
||||||
|
{
|
||||||
|
return; // Nothing changed!
|
||||||
|
}
|
||||||
// Attempt to forward the event
|
// Attempt to forward the event
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -472,6 +477,11 @@ static void OnPlayerStateChange(int32_t player_id, vcmpPlayerState old_state, vc
|
|||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
static void OnPlayerActionChange(int32_t player_id, int32_t old_action, int32_t new_action)
|
static void OnPlayerActionChange(int32_t player_id, int32_t old_action, int32_t new_action)
|
||||||
{
|
{
|
||||||
|
// Look for changes
|
||||||
|
if (old_action == new_action)
|
||||||
|
{
|
||||||
|
return; // Nothing changed!
|
||||||
|
}
|
||||||
// Attempt to forward the event
|
// Attempt to forward the event
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user