1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 09:57:14 +01:00

Update event parameter names for consitency.

This commit is contained in:
Sandu Liviu Catalin 2016-08-18 17:20:49 +03:00
parent 8af8890152
commit 35eed62b17
2 changed files with 4 additions and 4 deletions

View File

@ -1018,7 +1018,7 @@ public:
void EmitPlayerHeading(Int32 player_id, Float32 old_heading, Float32 new_heading);
void EmitPlayerPosition(Int32 player_id);
void EmitPlayerOption(Int32 player_id, Int32 option_id, bool value, Int32 header, Object & payload);
void EmitPlayerAdmin(Int32 player_id, bool old_admin, bool new_admin);
void EmitPlayerAdmin(Int32 player_id, bool old_status, bool new_status);
void EmitPlayerWorld(Int32 player_id, Int32 old_world, Int32 new_world, bool secondary);
void EmitPlayerTeam(Int32 player_id, Int32 old_team, Int32 new_team);
void EmitPlayerSkin(Int32 player_id, Int32 old_skin, Int32 new_skin);

View File

@ -766,11 +766,11 @@ void Core::EmitPlayerOption(Int32 player_id, Int32 option_id, bool value,
}
// ------------------------------------------------------------------------------------------------
void Core::EmitPlayerAdmin(Int32 player_id, bool old_admin, bool new_admin)
void Core::EmitPlayerAdmin(Int32 player_id, bool old_status, bool new_status)
{
PlayerInst & _player = m_Players.at(player_id);
Emit(_player.mOnAdmin, old_admin, new_admin);
Emit(mOnPlayerAdmin, _player.mObj, old_admin, new_admin);
Emit(_player.mOnAdmin, old_status, new_status);
Emit(mOnPlayerAdmin, _player.mObj, old_status, new_status);
}
// ------------------------------------------------------------------------------------------------