From 804a5abb29db14728e2d68c7bdd35e4bfe0213ed Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sat, 23 Jul 2022 23:17:31 +0300 Subject: [PATCH] Update Official.cpp --- module/Misc/Official.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/Misc/Official.cpp b/module/Misc/Official.cpp index aecd4e48..5bebc1d3 100644 --- a/module/Misc/Official.cpp +++ b/module/Misc/Official.cpp @@ -1273,11 +1273,11 @@ void Register_Official_Entity(HSQUIRRELVM vm) } // ------------------------------------------------------------------------------------------------ -static void LgClientMessage(StackStrF & msg, LgPlayer & player, int r, int g, int b) -{ _Func->SendClientMessage(player.GetIdentifier(), Color4(static_cast< uint8_t >(r), static_cast< uint8_t >(g), +static void LgClientMessage(StackStrF & msg, LightObj & player, int r, int g, int b) +{ _Func->SendClientMessage(GetLgEntID< LgPlayer, CPlayer >(player), Color4(static_cast< uint8_t >(r), static_cast< uint8_t >(g), static_cast< uint8_t >(b), 255).GetRGBA(), "%s", msg.mPtr); } -static void LgClientMessageWithAlpha(StackStrF & msg, LgPlayer & player, int r, int g, int b, int a) -{ _Func->SendClientMessage(player.GetIdentifier(), Color4(static_cast< uint8_t >(r), static_cast< uint8_t >(g), +static void LgClientMessageWithAlpha(StackStrF & msg, LightObj & player, int r, int g, int b, int a) +{ _Func->SendClientMessage(GetLgEntID< LgPlayer, CPlayer >(player), Color4(static_cast< uint8_t >(r), static_cast< uint8_t >(g), static_cast< uint8_t >(b), static_cast< uint8_t >(a)).GetRGBA(), "%s", msg.mPtr); } static void LgClientMessageToAll(StackStrF & msg, int r, int g, int b) { const uint32_t c = Color4(static_cast< uint8_t >(r), static_cast< uint8_t >(g),